Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CFrameWnd::CreateView

Call CreateView to create a view within a frame.

CWnd* CreateView( 
   CCreateContext* pContext, 
   UINT nID = AFX_IDW_PANE_FIRST  
);
pContext

Specifies the type of view and document.

nID

The ID number of a view.

Pointer to a CWnd object if successful; otherwise NULL.

Use this member function to create "views" that are not CView-derived within a frame. After calling CreateView, you must manually set the view to active and set it to be visible; these tasks are not automatically performed by CreateView.

Header: afxwin.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.