a.t.t
手头没有msdn,哪位帮个忙。

解决方案 »

  1.   

    BOOL EnumChildWindows(
      HWND hWndParent,         // handle to parent window
      WNDENUMPROC lpEnumFunc,  // callback function
      LPARAM lParam            // application-defined value
    );
      

  2.   

    HWND FindWindowEx( HWND hwndParent, 
     // handle to parent window 
     
    HWND hwndChildAfter, 
     // handle to a child window 
     
    LPCTSTR lpszClass, 
     // pointer to class name 
     
    LPCTSTR lpszWindow 
     // pointer to window name 
     
    ); 
     BOOL EnumChildWindows( HWND hWndParent, 
     // handle to parent window 
     
    WNDENUMPROC lpEnumFunc, 
     // pointer to callback function 
     
    LPARAM lParam 
     // application-defined value 
     
    ); 
     
      

  3.   

    再帮我查一下,如何确定lpEnumFunc已经查到所有窗体了。thx
      

  4.   

    和lpEnumFunc无关。
    如果EnumChildWindows正确返回了,所有窗体就查完了。