Re: How get I CWnd pointer
Hi !
I don't know, why you can't use the "this" pointer (what compiler error occurs ??).
You can't use
(CWnd *)GetSafeHwnd()
because GetSafeHwnd returns a HWND (which is a handle from a window), and not a pointer to a CWnd (which is a C++-object).
Use
CWnd::FromHandle(GetSafeHwnd()) instead.
Greetings
Martin
Re: How get I CWnd pointer
This CWnd pointer is pointer to parent window and you cant choose this pointer arbitrary it MUST be pointer to the window there control will appear.
WBR Oak