c++ - How to find an owned window in a Win32 application? -
first, let me explain situation: in win32 app, have overlapped window hwnd name hwnd1. create overlapped window following code:
hwnd hwnd2 = ::createwindowex(0, l"classname", l"window_name", ws_overlappedwindow, left, top, width, height, hwnd1, null, ::getmodulehandle(null), null);
at first, thought hwnd1 hwnd2's parent window. when use "findwindowex" trying find hwnd2 below:
::findwindowex(hwnd1, nullptr, l"classname", l"window_name");
i can't find it. discovered hwnd1 not hwnd2's parent owner. "findwindowex" invalid in situation. how can find hwnd2 when know owner , class name , window name?
Comments
Post a Comment