Re: question about thunk
"tom_gee" <tom_gee-/[email protected]> Wed, 13 Apr 2011 11:33:49 -0000
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <[email protected]> |
This thunk is ATL's way to hook your windows message handler, in the form of a non-static C++ member function, to all kinds of windows message(WM_*). This is necessary because only a plain C function or static class member function is expected when you define a window class. So you have to find a way to disguise your member-function windows message handler as an acceptable plain C function or static class member function. almost all modern OOP GUIs frameworks have to deal with this issue, but in different ways. MFC resorts to a window_handle-this_pointer map. --- In [email protected], Philipp Kursawe <phil.kursawe@...> wrote: > > Whats this thunk thing for anyway? > How does it work? > > Thanks, > Phil > > > [Non-text portions of this message have been removed] > ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/wtl/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/wtl/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/