Getting c++ class name after calling GetFocus() !
Posted on 2004-04-21
How is it possible to get the C++ class name of the CWnd object returned by GetFocus() ?
What other solution are possible on how to correctly cast the CWnd object returned if you don't know his type ?
I have tried to use GetRuntimeClass() but the information stored in m_pszClassName is not usuable in my case because the control is subclassed on a CStatic and the runtime returns me 'CWnd'.
But if I look in the debug watch view, I can see the base C++ class name which is not my C++ class name but the parents one.
Can someone help me but without using Type Lib !