greetings every1,
i understand that if u change the style property of a command button to graphical, the forms recieves a WM_DRAWITEM msg. I can catch that and draw the button. But what msg is posted if the style property is Standard or better still how to draw the button when the style property is standard Plz help.
18-07-2004 at 07:30 AM
|
Goran Level: Moderator Registered: 16-05-2002 Posts: 1681
Re: what if not WM_DRAWITEM?
Have you tried catching WM_CTLCOLORBTN. I never tried it myself, but it is worth trying. wParam holds a handle to the button's device context.
"The WM_CTLCOLORBTN message is sent to the parent window of a button when the button is about to be drawn. By responding to this message, the parent window can set a button's text and background colors. "
____________________________
If you find the answer helpful, please mark this topic as solved.