我们现在再来看看AfxDeferRegisterClass是什么样子的: #define AfxDeferRegisterClass(fClass) \ ((afxRegisteredClasses & fClass) ? TRUE:AfxEndDeferRegisterClass(fClass) #define afxRegisteredClasses AfxGetModuleState()->m_fRegisteredClasses BOOL AFXAPI AfxEndDeferRegisterClass(short fClass) { WNDCLASS wndCls; wndCls.lpfnWndProc = DefWindowProc; if(fClass & AFX_WND_REG) { wndCls.lpszClassName=_afxWnd; AfxRegisterClass(&wndCls); }else if(fClass & AFX_WNDOLECONTROL_REG) { wndCls.lpszClassName=_afxWndOleControl; AfxRegisterClass(&wndCls); }else if(fClass & AFX_WNDCONTROLBAR_REG) |
正在阅读:窗口类的诞生(注册自己的窗口类)2窗口类的诞生(注册自己的窗口类)2
2004-03-08 14:55
出处:CSDN
责任编辑:linjixiong
键盘也能翻页,试试“← →”键