windows程序框架
WNDCLASS类
typedef struct tagWNDCLASSW {
UINT style; //窗口类类型
WNDPROC lpfnWndProc; //窗口处理过程,或者说窗口处理函数
int cbClsExtra; //该结构后跟随的可用额外内存的大小
int cbWndExtra; //窗口实例中,可用额外内存大小
HINSTANCE hInstance; //进程实例句柄
HICON hIcon; //程序图标
HCURSOR hCursor; //程序光标
HBRUSH hbrBackground; //客户背景刷
LPCWSTR lpszMenuName; //菜单
LPCWSTR lpszClassName; //类名
} WNDCLASSW, *PWNDCLASSW, NEAR *NPWNDCLASSW, FAR *LPWNDCLASSW;
一个应用程序在创建某个类型的窗口前,必须首先注册该“窗口类”
ATOM RegisterClassA( const WNDCLASSA *lpWndClass );
typedef struct tagMSG {
HWND hwnd;
UINT message;
WPARAM wParam;
LPARAM lParam;
DWORD time;
POINT pt;
#ifdef _MAC
DWORD lPrivate;
#endif
} MSG, *PMSG, NEAR *NPMSG, FAR *LPMSG;