FindWindow(LPCTSTR IpClassName,LPCTSTR IpWindowName)
这个函数是获得窗口的句柄的。那么这两个参数分别是什么意思?
EnumChildWindows(HWND hWndParent,WNDENUMPROC lpEnumFunc, LPARAM lParam)
这个函数是作什么用的,参数分别代表什么?

解决方案 »

  1.   

    Syntax
    FindWindow(
    lpClassName: PChar; {a pointer to a null terminated class name string}
    lpWindowName: PChar {a pointer to a null terminated window name string}
    ): HWND; EnumChildWindows(
    hWndParent: HWND;  {the handle of the parent window}
    lpEnumFunc: TFNWndEnumProc;  {a pointer to the callback function}
    lParam: LPARAM {an application defined 32 bit value}
    ): BOOL; {returns TRUE or FALSE}回调函数定义
    EnumChildProc(
    hWnd: HWND;  {a handle to a child window}lParam: LPARAM {an application defined 32 bit value}
    ): BOOL; {returns TRUE or FALSE}