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 结构多一个参数,用来定义窗口的特别样式。
最后
以上就是幽默金毛最近收集整理的关于RegisterClassEx和RegisterClass的全部内容,更多相关RegisterClassEx和RegisterClass内容请搜索靠谱客的其他文章。
发表评论 取消回复