yairy
asked on
How do I get Class name of CWnd Object ?
When an object from another application
is captured, I want to know the objects name.
For example:
Spy++ retirves MSWord Editor class name
as _Wwg.
What is the MFC / API function
that does so ?
Yair
is captured, I want to know the objects name.
For example:
Spy++ retirves MSWord Editor class name
as _Wwg.
What is the MFC / API function
that does so ?
Yair
DECLARE_DYNCREATE also works. An example is say I have a class CMyView and in its OnDraw function I write
pDC->TextOut(0,0,GetRuntim eClass->m_ lpszClassN ame);
it spits out
CMyView.
Glenn
pDC->TextOut(0,0,GetRuntim
it spits out
CMyView.
Glenn
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
pWnd->GetRuntimeClass->m_l
returns the class name of the object.
The class does have to use one of the DECLARE_DYNAMIC/DECLARE_SE
Glenn