Udostępnij za pośrednictwem


CPaneFrameWnd::CreateEx

Creates a miniframe window and attaches it to the CPaneFrameWnd object.

virtual BOOL CreateEx(
   DWORD dwStyleEx,
   LPCTSTR lpszWindowName,
   DWORD dwStyle,
   const RECT& rect,
   CWnd* pParentWnd,
   CCreateContext* pContext=NULL 
);

Parameters

  • [in] dwStyleEx
    Specifies the extended window style. For more information, see Extended Window Styles

  • [in] lpszWindowName
    Specifies the text to display on the miniframe window.

  • [in] dwStyle
    Specifies the window style. For more information, see Window Styles.

  • [in] rect
    Specifies the initial size and position of the miniframe window.

  • [in] [out] pParentWnd
    Specifies the parent frame of the miniframe window. This value must not be NULL.

  • [in] [out] pContext
    Specifies user-defined context.

Return Value

TRUE if the window was created successfully; otherwise, FALSE.

Remarks

A miniframe window is created in two steps. First, the framework creates a CPaneFrameWnd object. Second, it calls Create to create the Windows miniframe window and attach it to the CPaneFrameWnd object.

Requirements

Header: afxPaneFrameWnd.h

See Also

Reference

CPaneFrameWnd Class

Hierarchy Chart