get window handle first ,then use int GetClassName( HWND hWnd, // handle to window LPTSTR lpClassName, // class name int nMaxCount // size of class name buffer );
GetClassName(HWND hWnd,LPTSTR lpClassName,int nMaxCount); //find the class name of the window; //hWnd: the handle of the window; //lpClassName: pointer to a char buffer to receive the class name; //nMaxCount: byte count of the buffer;See also: GetClassInfo GetClassInfoEx GetClassLong GetWindowLong ...
int GetClassName(
HWND hWnd, // handle to window
LPTSTR lpClassName, // class name
int nMaxCount // size of class name buffer
);
GetClassName(HWND hWnd,LPTSTR lpClassName,int nMaxCount);
//find the class name of the window;
//hWnd: the handle of the window;
//lpClassName: pointer to a char buffer to receive the class name;
//nMaxCount: byte count of the buffer;See also:
GetClassInfo
GetClassInfoEx
GetClassLong
GetWindowLong
...