Findwindow and findjavaswex are used to locate mid window problems. Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiAPI/html/delphi_20061127161821165.html
There is an MDI sub-window mdi_1, then mdi_11: = tmdi_11.create (Self) in the mid_1 window, and finally find the handle of the mdi_1 window in mdi_11, which cannot be found. Please introduce how to use find1_wex.
The findwindow I used can find non-MDI windows.
HD: = findwindow ('mdi _ 1', 0)
I cannot find anything using findjavaswex.
HD: = find1_wex (mdi_1.parentwindow, 0, 'mdi _ 1', nil );
Use findcompent
Solved, but the 'mdiclient' still does not know what it means
// Refer to the followingCode
VaR
Vhandle: thandle;
Begin
Vhandle: = findwindow ('tform1 ', nil); // find the MDI main form
Memo1.lines. Add (inttostr (vhandle ));
Vhandle: = find+wex (vhandle, 0, 'mdiclient', nil); // find the MDI container Region
Memo1.lines. Add (inttostr (vhandle ));
Vhandle: = findwindowex (vhandle, 0, 'tform3', nil); // find the MDI subform
End;
Finddomainwex (
Parent: hwnd; {a handle to a parent window}
Child: hwnd; {a handle to a Child Window}
Classname: pchar; {a pointer to a NULL terminated class name string}
Windowname: pchar {a pointer to a NULL terminated window name string}
): Hwnd; {returns a handle to a window}