ATOM RegisterClassEx(
CONST WNDCLASSEX *lpwcx // address of structure with class data
);
其中WNDCLASSEX声明如下:
typedef struct _WNDCLASSEX {
UINT cbSize;
UINT style;
WNDPROC lpfnWndProc;
int cbClsExtra;
int cbWndExtra;
HANDLE hInstance;
HICON hIcon;
HCURSOR hCursor;
HBRUSH hbrBackground;
LPCTSTR lpszMenuName;
LPCTSTR lpszClassName;
HICON hIconSm;
} WNDCLASSEX;
///
ATOM RegisterClass(
CONST WNDCLASS *lpWndClass // address of structure with class
// data
);
其中WNDCLASS声明如下:
typedef struct _WNDCLASS {
UINT style;
WNDPROC lpfnWndProc;
int cbClsExtra;
int cbWndExtra;
HANDLE hInstance;
HICON hIcon;
HCURSOR hCursor;
HBRUSH hbrBackground;
LPCTSTR lpszMenuName;
LPCTSTR lpszClassName;
} WNDCLASS;
WNDCLASSEX 比 WNDCLASS 结构多一个参数,用来定义窗口的特别样式。