ATL question ???
-
Hi! I made an ATL composite control with ATL wizzard . I want to place my custom draw slider on it . In the slider class it is defined BEGIN_MESSAGE_MAP(CClipSlider, CSliderCtrl) ... ON_NOTIFY_REFLECT(NM_CUSTOMDRAW, OnCustomdraw) It seems that the parent ATL control does not reflect the message NM_CUSTOMDRAW How Can I make this to work???or other way to have my custom draw slider?? Thankx:(( :(( xxx
-
Hi! I made an ATL composite control with ATL wizzard . I want to place my custom draw slider on it . In the slider class it is defined BEGIN_MESSAGE_MAP(CClipSlider, CSliderCtrl) ... ON_NOTIFY_REFLECT(NM_CUSTOMDRAW, OnCustomdraw) It seems that the parent ATL control does not reflect the message NM_CUSTOMDRAW How Can I make this to work???or other way to have my custom draw slider?? Thankx:(( :(( xxx
REFLECT_NOTIFICATIONS needs to be in your parent window class and REFLECTED_NOTIFY_CODE_HANDLER needs to be in your child window class. ON_NOTIFY_REFLECT is from MFC. Tim Smith I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?