Click here to Skip to main content
15,906,816 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Initializing STL containers Pin
Rob Caldecott6-Jul-05 6:39
Rob Caldecott6-Jul-05 6:39 
GeneralRe: Initializing STL containers Pin
Rob Caldecott6-Jul-05 6:41
Rob Caldecott6-Jul-05 6:41 
Generalfind_if and function objects ('functors') Pin
Rob Caldecott5-Jul-05 3:11
Rob Caldecott5-Jul-05 3:11 
GeneralRe: find_if and function objects ('functors') Pin
Michael Dunn5-Jul-05 6:54
sitebuilderMichael Dunn5-Jul-05 6:54 
GeneralRe: find_if and function objects ('functors') Pin
Rob Caldecott5-Jul-05 22:48
Rob Caldecott5-Jul-05 22:48 
GeneralRe: find_if and function objects ('functors') Pin
Jörgen Sigvardsson5-Jul-05 12:37
Jörgen Sigvardsson5-Jul-05 12:37 
GeneralRe: find_if and function objects ('functors') Pin
Rob Caldecott6-Jul-05 0:21
Rob Caldecott6-Jul-05 0:21 
GeneralMFC events, in ATL with MFC support controls Pin
greekgoddj4-Jul-05 22:01
greekgoddj4-Jul-05 22:01 
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:
<br />
BEGIN_MSG_MAP(CSomeClass)<br />
        ...<br />
	MESSAGE_HANDLER(WM_SETTINGCHANGE, OnSettingChange)<br />
        ...<br />
END_MSG_MAP()<br />

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 of
<br />
OnSettingChange(UINT uFlags, LPCTSTR lpszSection)<br />


and in ATL control project with MFC support it is in the form of:
<br />
OnSettingChange(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)<br />





Thanks,

Aristotel Confused | :confused:
Generalhandling WM_MOUSEWHEEL between two views Pin
retro_coder4-Jul-05 1:01
retro_coder4-Jul-05 1:01 
GeneralRe: handling WM_MOUSEWHEEL between two views Pin
Cedric Moonen4-Jul-05 23:13
Cedric Moonen4-Jul-05 23:13 
GeneralRe: handling WM_MOUSEWHEEL between two views Pin
Jörgen Sigvardsson6-Jul-05 1:01
Jörgen Sigvardsson6-Jul-05 1:01 
GeneralRe: handling WM_MOUSEWHEEL between two views Pin
Cedric Moonen6-Jul-05 4:00
Cedric Moonen6-Jul-05 4:00 
GeneralRe: handling WM_MOUSEWHEEL between two views Pin
Jörgen Sigvardsson6-Jul-05 1:08
Jörgen Sigvardsson6-Jul-05 1:08 
GeneralSorry! An error occured while generating the object Pin
AdyOS1-Jul-05 0:12
AdyOS1-Jul-05 0:12 
GeneralRe: Sorry! An error occured while generating the object Pin
toxcct1-Jul-05 0:23
toxcct1-Jul-05 0:23 
GeneralRe: Sorry! An error occured while generating the object Pin
AdyOS1-Jul-05 0:44
AdyOS1-Jul-05 0:44 
GeneralRe: Sorry! An error occured while generating the object Pin
AdyOS1-Jul-05 1:01
AdyOS1-Jul-05 1:01 
GeneralRe: Sorry! An error occured while generating the object Pin
Cedric Moonen4-Jul-05 0:53
Cedric Moonen4-Jul-05 0:53 
GeneralATL interop with CLR Pin
squawkbox30-Jun-05 23:28
squawkbox30-Jun-05 23:28 
GeneralRe: ATL interop with CLR Pin
HaniSalehi25-Apr-10 6:57
HaniSalehi25-Apr-10 6:57 
GeneralConversion of C++ templates into C code Pin
Arun Chakaravarthy28-Jun-05 22:30
Arun Chakaravarthy28-Jun-05 22:30 
GeneralRe: Conversion of C++ templates into C code Pin
CP Visitor29-Jun-05 4:14
CP Visitor29-Jun-05 4:14 
GeneralRe: Conversion of C++ templates into C code Pin
Jörgen Sigvardsson29-Jun-05 12:37
Jörgen Sigvardsson29-Jun-05 12:37 
GeneralRe: Conversion of C++ templates into C code Pin
toxcct29-Jun-05 5:53
toxcct29-Jun-05 5:53 
GeneralUnicode streams and ASCII files Pin
Patje28-Jun-05 4:19
Patje28-Jun-05 4:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.