October 1st, 2002, 02:07 PM
Manually repainting owner draw buttons?
I was wondering how I could get my owner draw buttons to repaint. For example, I want them to repaint when a user clicks the mouse...I tried sending a WM_DRAWITEM message, but that doesn't seem to work. Any suggestions would be great. (win32 and c)
October 1st, 2002, 03:56 PM
Are you sure that your owner-drawn buttons have the BS_OWNERDRAW style set?
October 2nd, 2002, 11:07 AM
I'm positive that I am...I am manually drawing my button. Maybe I'm just getting the lParam and wParam wrong when sending the WM_DRAWITEM message. THe format that I am using is, lParam = NULL, and wParam = ID of control sending the message.
October 2nd, 2002, 03:39 PM