Partager via


CHtmlEditView::Create

Creates a new window object.

virtual BOOL Create( 
   LPCTSTR lpszClassName, 
   LPCTSTR lpszWindowName, 
   DWORD dwStyle, 
   const RECT& rect, 
   CWnd* pParentWnd, 
   UINT nID, 
   CCreateContext* pContext = NULL 
);

Parameters

  • lpszClassName
    Points to a null-terminated character string that names the Windows class. The class name can be any name registered with the AfxRegisterWndClass global function or the RegisterClass Windows function. If NULL, uses the predefined default CFrameWnd attributes.

  • lpszWindowName
    Points to a null-terminated character string that represents the window name.

  • dwStyle
    Specifies the window style attributes. By default, the WS_VISIBLE and WS_CHILD Windows styles are set.

  • rect
    A reference to a RECT structure specifying the size and position of the window. The rectDefault value allows Windows to specify the size and position of the new window.

  • pParentWnd
    A pointer to the parent window of the control.

  • nID
    The ID number of the view. By default, set to AFX_IDW_PANE_FIRST.

  • pContext
    A pointer to a CCreateContext. NULL by default.

Remarks

This method will also call the contained WebBrowser's Navigate method to load a default document (see CHtmlEditView::GetStartDocument).

Requirements

Header: afxhtml.h

See Also

Reference

CHtmlEditView Class

CHtmlView::Create