谢谢

解决方案 »

  1.   

    GetClassName
    The GetClassName function retrieves the name of the class to which the specified window belongs. int GetClassName(
      HWND hWnd,           // handle to window
      LPTSTR lpClassName,  // class name
      int nMaxCount        // size of class name buffer
    );
    Parameters
    hWnd 
    [in] Handle to the window and, indirectly, the class to which the window belongs. 
    lpClassName 
    [out] Pointer to the buffer that is to receive the class name string. 
    nMaxCount 
    [in] Specifies the length, in TCHARs, of the buffer pointed to by the lpClassName parameter. The class name string is truncated if it is longer than the buffer. 
    Return Values
    If the function succeeds, the return value is the number of TCHARs copied to the specified buffer.If the function fails, the return value is zero. To get extended error information, call GetLastError.