Partager via


CHtmlView::Create

Call this member function to create a WebBrowser control or container for the Internet Explorer executable.

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.

Requirements

Header: afxhtml.h

See Also

Reference

CHtmlView Class

Hierarchy Chart