MFC events, in ATL with MFC support controls
-
Greetings... I have been working on some ATL controls which have MFC support. I can view the property page of the ATL classes and see the events they can handle, which are a partial list of those available to pure MFC classes. However I need to handle the event WM_SETTINGCHANGE and that is not listed as a possible event. I can manually type it under:
BEGIN_MSG_MAP(CSomeClass) ... MESSAGE_HANDLER(WM_SETTINGCHANGE, OnSettingChange) ... END_MSG_MAP()
but this doesn't work..the debugger never stops in the OnSettingChange function. However, if I make a new purely MFC project, WM_SETTINGCHANGE is listed under the events tap of the classe's property page, and it all works just fine. The question I guess is, how can it be that ATL "with MFC support" has only some of the events? also what is the work arround, especially as in pure MFC the event handling function is in the form ofOnSettingChange(UINT uFlags, LPCTSTR lpszSection)
and in ATL control project with MFC support it is in the form of:OnSettingChange(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
Thanks, Aristotel :confused: