How to crate new frame
C / C++ / MFC
4
Posts
3
Posters
1
Views
1
Watching
-
Make your frame class and derive it from CFrameWnd. Create an object using your constructor. Then call CFrameWnd::Create(..) function on your object. Here's an example: CFrameWnd::Create(NULL, "", WS_POPUP, location,NULL,0,NULL); I pass NULL as the argument for parent. Look up on MSDN what the other parameters are.
-
Make your frame class and derive it from CFrameWnd. Create an object using your constructor. Then call CFrameWnd::Create(..) function on your object. Here's an example: CFrameWnd::Create(NULL, "", WS_POPUP, location,NULL,0,NULL); I pass NULL as the argument for parent. Look up on MSDN what the other parameters are.