也就是怎么能把hwnd变成self?

解决方案 »

  1.   

    Returns the windowed control (Windows) or widget (cross-platform) whose window is identified by the specified handle or which appears at a specified position.UnitControlsor QControlsCategoryWindows controls utilities (Windows) or control and form location (cross-platform)Windows controls utilities (Windows)or control and form location (cross-platform)
    function FindControl(Handle: HWnd): TWinControl;
      

  2.   

    既然知道了hwnd了,那就可以根据这个唯一标识找到窗体啊。这部分由vcl负责,没必要去深究。