Application.Handle表示什么句柄,uType: Cardinal是什么类型

解决方案 »

  1.   

    看帮助吧
    Provides access to the window handle of the main form (window) of the application.property Handle: HWND;DescriptionUse Handle when calling Windows API functions that require a parent window handle. For example, a DLL that displays its own top-level pop-up windows needs a parent window to display its windows in the application. Using the Handle property makes such windows part of the application, so that they are minimized, restored, enabled, and disabled with the application.Note: When writing a DLL that uses VCL forms, assign the window handle of the host EXE抯 main window to the DLL抯 Application.HandleApplication->Handle property. This makes the DLL抯 form part of the host application. Never assign to the Handle property in an EXE.
      

  2.   

    Application.Handle
    记得在哪本书上看过,整个程序还有一个看不到的form在幕后操纵着一切,是MainForm的parent,application.Handle应该就是表示这个窗口的句柄。
    uType: Cardinal是什么类型
    ////////看帮助
    An integer type represents a subset of the whole numbers. The generic integer types are Integer and Cardinal; use these whenever possible, since they result in the best performance for the underlying CPU and operating system. The table below gives their ranges and storage formats for the current 32-bit Delphi compiler.Generic integer types for 32-bit implementations of Delphi  
    Type Range Format
    Integer -2147483648..2147483647 signed 32-bit
    Cardinal 0..4294967295 unsigned 32-bit