Findwindow and find1_wex are used to find problems with the mid window.

Source: Internet
Author: User
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}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.