How Create derived from CWnd POP UP Window?
问题 I created class CSurfaceWnd from CWnd by Class Wizard. I tried to create window but getting error. That's my code of creating: if(!m_pSurfaceWnd) { CString m_NameClass = AfxRegisterWndClass( CS_VREDRAW | CS_HREDRAW, ::LoadCursor(NULL, IDC_ARROW), (HBRUSH) ::GetStockObject(WHITE_BRUSH), ::LoadIcon(NULL, IDI_APPLICATION)); m_pSurfaceWnd = new CSurfaceWnd; CRect rcTemp; GetWindowRect(rcTemp); VERIFY(m_pSurfaceWnd->CreateEx(WS_EX_CLIENTEDGE, m_NameClass, NULL, WS_POPUP | WS_VISIBLE, rcTemp, mpWnd