How to get the parent window handle from another handle?
C++, Win32, Dev-C++
Printable View
How to get the parent window handle from another handle?
C++, Win32, Dev-C++
Stupid me... MSDN helped out...
Code:HWND parent=GetWindowLong(current,GWL_HWNDPARENT);
GetParent (or maybe GetAncestor)
Wow, there really are many possibilities to do this...
There are some subtleties when using these functions.
INFO: Window Owners and Parents