Discussion:
How to get 'window class' from CWnd object or from a window handle
(too old to reply)
SSRoy
2006-07-24 15:38:02 UTC
Permalink
How to get the ‘window class’ (WNDCLASS) from a CWnd object? I have searched
many articles but didn’t get a suitable function. Is there any such function
in MFC?

Also is there any function/API to get ‘window class’ (WNDCLASS) from a
window handle (HWND)?

Please help

Regards,

Sanjoy Sinha Roy
NDS Limited, India
Ajay Kalra
2006-07-24 15:50:04 UTC
Permalink
How to get the 'window class' (WNDCLASS) from a CWnd object? I have searched
many articles but didn't get a suitable function. Is there any such function
in MFC?
Also is there any function/API to get 'window class' (WNDCLASS) from a
window handle (HWND)?
Please help
Regards,
Sanjoy Sinha Roy
NDS Limited, India
Take a look at GetClassInfoEx.

---
Ajay
AliR
2006-07-24 15:56:34 UTC
Permalink
You can call GetWindowInfo to get the Window Class Atom then call
GetClassInfo or GetClassInfoEx to get more information about it.

AliR.
How to get the 'window class' (WNDCLASS) from a CWnd object? I have
searched
many articles but didn't get a suitable function. Is there any such
function
in MFC?
Also is there any function/API to get 'window class' (WNDCLASS) from a
window handle (HWND)?
Please help
Regards,
Sanjoy Sinha Roy
NDS Limited, India
Continue reading on narkive:
Search results for 'How to get 'window class' from CWnd object or from a window handle' (Questions and Answers)
3
replies
windows programming in c and windows programming in c++ ?
started 2011-07-12 07:56:15 UTC
programming & design
Loading...