Message Reflection for WM_CTLCOLORSTATIC
-
I'm making a hyperlink control which i obviously need to color but i found out that chil controls don't automaticly receive the WM_CTLCOLORSTATIC message so i thought i needed to do this with Message Reflection. I however don't have a clue how to do this except for Notify messages. Can somebody help me out?
-
I'm making a hyperlink control which i obviously need to color but i found out that chil controls don't automaticly receive the WM_CTLCOLORSTATIC message so i thought i needed to do this with Message Reflection. I however don't have a clue how to do this except for Notify messages. Can somebody help me out?
Have you looked into handling the OCM_CTRLCOLORSTATIC message with reflection?
-
Have you looked into handling the OCM_CTRLCOLORSTATIC message with reflection?
-
I have used something like the following: In the parent's message map include REFLECT_NOTIFICATIONS() like: BEGIN_MSG_MAP(CMainFrame) REFLECT_NOTIFICATIONS() ... END_MSG_MSP() And in the child message map do something like: BEGIN_MSG_MAP(CChildWindow) MSG_OCM_NOTIFY(OnNotify) DEFAULT_REFLECTION_HANDLER() END_MSG_MAP() This has worked for me. The MSG_OCM_NOTIFY is from WTL enhanced message crackers in atlcrack.h. Good Luck, Tom Rieck