WM_CTLCOLOR
-
The WM_CTLCOLOR message is used in 16-bit versions of Windows to change the color scheme of list boxes, the list boxes of combo boxes, button controls, edit controls, static controls, message boxes, and dialog boxes. If an application processes this message, it returns a handle to a brush. The system uses the brush to paint the background of the control =WM_CTLCOLOR In classwizard WM_CTLCOLOR will appear as "=WM_CTLCOLOR"
-
-
WM_CTLCOLOR
is the Windows message sent to the parent of a control. MFC allows the control itself to handle some messages that are actually sent to its parent. This is called message reflection, andWM_CTLCOLOR
is one of these messages. If you handleWM_CTLCOLOR
in a particular window (eg.myWindow
), then you handle a message sent from one ofmyWindow
's children. If you handle=WM_CTLCOLOR
, you handle a message that was sent frommyWindow
to its parent. I hope this is clear enough to understand :) Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact" -
WM_CTLCOLOR
is the Windows message sent to the parent of a control. MFC allows the control itself to handle some messages that are actually sent to its parent. This is called message reflection, andWM_CTLCOLOR
is one of these messages. If you handleWM_CTLCOLOR
in a particular window (eg.myWindow
), then you handle a message sent from one ofmyWindow
's children. If you handle=WM_CTLCOLOR
, you handle a message that was sent frommyWindow
to its parent. I hope this is clear enough to understand :) Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact" -
You're welcome :) Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"