creating CWnd using Create
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
the following code giving me runtime error but ignoring runtime error shows the desired window. wat is bad in the code n if any better solution using CreateEx() CWnd* pWnd = new CWnd; pWnd->Create(/*WS_EX_OVERLAPPEDWINDOW ,*/AfxRegisterWndClass(0,AfxGetApp()->LoadStandardCursor(IDC_ARROW),GetSysColorBrush(COLOR_WINDOW),NULL), "Hello", WS_POPUPWINDOW |WS_VISIBLE /*| WS_CAPTION*/, CRect(700, 480, 800, 580), this,1234); i m using this code in a button handler of dialog base application. any one can help