请问aicon:=sendmessage(tophdl,WM_GETICON,ICON_BIG,0);与
    aIcon:=GetClassLong(TopHdl,GCL_HICON);有什么区别,先谢了.

解决方案 »

  1.   

    SyntaxWM_GETICON    WPARAM wParam
        LPARAM lParam;
    ParameterswParam
    Specifies the type of icon being retrieved. This parameter can be one of the following values.
    ICON_BIG
    Retrieve the large icon for the window.
    ICON_SMALL
    Retrieve the small icon for the window.
    ICON_SMALL2
    Windows XP: Retrieves the small icon provided by the application. If the application does not provide one, the system uses the system-generated icon for that window.
    lParam
    This parameter is not used.
    這是消息的功能。