Share via


CPaneDialog Class

The CPaneDialog class supports a modeless, dockable dialog box.

class CPaneDialog : public CDockablePane

Members

Public Constructors

Name

Description

CPaneDialog::CPaneDialog

Default constructor.

CPaneDialog::~CPaneDialog

Destructor.

Public Methods

Name

Description

CPaneDialog::Create

Creates a dockable dialog box and attaches it to a CPaneDialog object.

CPaneDialog::CreateObject

Used by the framework to create a dynamic instance of this class type.

CPaneDialog::GetThisClass

Used by the framework to obtain a pointer to the CRuntimeClass object that is associated with this class type.

CPaneDialog::HandleInitDialog

Handles the WM_INITDIALOG message. (Redefines CBasePane::HandleInitDialog.)

CPaneDialog::OnEraseBkgnd

Handles the WM_ERASEBKGND message. (Redefines CWnd::OnEraseBkgnd.)

CPaneDialog::OnLButtonDblClk

Handles the WM_LBUTTONDBLCLK message. (Redefines CWnd::OnLButtonDblClk.)

CPaneDialog::OnLButtonDown

Handles the WM_LBUTTONDOWN message. (Redefines CWnd::OnLButtonDown.)

CPaneDialog::OnUpdateCmdUI

Called by the framework to update the dialog box window. (Overrides CDockablePane::OnUpdateCmdUI.)

CPaneDialog::OnWindowPosChanging

Handles the WM_WINDOWPOSCHANGING message. (Redefines CWnd::OnWindowPosChanging.)

CPaneDialog::SetOccDialogInfo

Specifies the template for a dialog box that is an OLE control container.

Remarks

Construct a CPaneDialog object in two steps. First, construct the object in your code. Second, call CPaneDialog::Create. You must specify a valid resource template name or template ID and pass a pointer to the parent window. Otherwise, the creation process fails. The dialog box must specify the WS_CHILD and WS_VISIBLE style. We recommend that you also specify the WS_CLIPCHILDREN and WS_CLIPSIBLINGS styles. For more information, see Window Styles.

Inheritance Hierarchy

CObject

   CCmdTarget

      CWnd

         CBasePane

            CPane

               CDockablePane

                  CPaneDialog

Requirements

Header: afxpanedialog.h

See Also

Reference

Hierarchy Chart

CDockablePane Class

Window Styles

Other Resources

MFC Classes