Home > Back-end >  Why don't you response WM_CTLCOLORBTN news??
Why don't you response WM_CTLCOLORBTN news??

Time:10-06

I want to realize the radio buttons and check boxes transparent background, so be intercepted WM_CTLCOLORBTN, message map ready later, found that hardly into the message response function, could you tell me what's the problem? Here is a message map, should be no problem, right?
 protected: 
HBRUSH __fastcall OnCtlColorBtn (TWMCtlColor & amp; Msg);
BEGIN_MESSAGE_MAP
MESSAGE_HANDLER (WM_CTLCOLORBTN TWMCtlColor, OnCtlColorBtn)
END_MESSAGE_MAP (TForm)

CodePudding user response:

afx_msg

CodePudding user response:

HBRUSH __fastcall OnCtlColorBtn (TMessage & amp; Msg);
BEGIN_MESSAGE_MAP
VCL_MESSAGE_HANDLER (WM_CTLCOLORBTN TMessage, OnCtlColorBtn)
END_MESSAGE_MAP (TForm)

CodePudding user response:

refer to the second floor xmnathan response:
HBRUSH __fastcall OnCtlColorBtn (TMessage & amp; Msg);
BEGIN_MESSAGE_MAP
VCL_MESSAGE_HANDLER (WM_CTLCOLORBTN TMessage, OnCtlColorBtn)
END_MESSAGE_MAP (TForm)
I according to your this changed, no effect!
  • Related