How to get the parent window handle from another handle?
C++, Win32, Dev-C++
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)
"Think not but that I know these things; or think
I know them not: not therefore am I short
Of knowing what I ought."
-John Milton, Paradise Regained (1671)
"Work hard and it might happen."
-XSquared
Wow, there really are many possibilities to do this...
There are some subtleties when using these functions.
INFO: Window Owners and Parents