CPane Class
This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.
The CPane class is an enhancement of the CControlBar Class. If you are upgrading an existing MFC project, you need to replace all occurrences of CControlBar with CPane.
class CPane : public CBasePane
Members
Public Constructors
Name |
Description |
---|---|
CPane::~CPane |
Destructor. |
Public Methods
Name |
Description |
---|---|
Immediately recalculates the layout of a pane. |
|
Allocates storage for internal use. |
|
|
|
Calculates the difference in size between a specified rectangle and the current window rectangle. |
|
Calculates the inside rectangle of a pane, taking into account the borders and grippers. |
|
Calculates the recently docked rectangle. |
|
Calculates the size of the pane. |
|
Determines if the pane can be docked at the specified base pane. |
|
Determines if the pane can be converted to a tabbed document. |
|
|
|
Copies the state of a pane. (Overrides CBasePane::CopyState.) |
|
Creates a control bar and attaches it to the CPane object. |
|
Creates a mini frame window for a floating pane. |
|
Creates a control bar and attaches it to the CPane object. |
|
CPane::CreateObject |
Used by the framework to create a dynamic instance of this class type. |
Docks a pane by using the mouse docking methodl. |
|
Docks the floating pane to a base pane. |
|
|
|
(Overrides CBasePane::DockToFrameWindow.) |
|
Indicates whether you can dock another pane at the same row where the current pane is docked. |
|
Floats the pane. |
|
|
|
|
|
Returns the width of the borders of the pane. |
|
|
|
|
|
Determines if the pane is in exclusive row mode. |
|
|
|
|
|
|
|
|
|
|
|
CPane::GetThisClass |
Used by the framework to obtain a pointer to the CRuntimeClass object that is associated with this class type. |
|
|
|
|
|
|
(Overrides CBasePane::IsInFloatingMultiPaneFrameWnd.) |
|
|
|
|
|
Determines whether the pane can be resized. (Overrides CBasePane::IsResizable.) |
|
Determines whether the pane has been inserted in the tab control of a tabbed window. (Overrides CBasePane::IsTabbed.) (Overrides CBasePane::IsTabbed.) |
|
Loads the pane's state from the registry. (Overrides CBasePane::LoadState.) (Overrides CBasePane::LoadState.) |
|
|
|
|
|
Called by the framework when the parent of a pane has changed. |
|
Called by the framework when the parent of the pane is about to change. |
|
Called by the framework when the user presses the close button on the caption for the pane. |
|
|
|
|
|
Called by the framework when a special pane menu is about to be displayed. |
|
|
|
(Overrides CBasePane::RecalcLayout.) |
|
Saves the pane's state to the registry. (Overrides CBasePane::SaveState.) (Overrides CBasePane::SaveState.) |
|
|
|
Sets the border values of the pane. |
|
|
|
|
|
Enables or disables the exclusive row mode. |
|
Sets the runtime class information for the default mini frame window. |
|
|
|
|
|
|
|
|
|
Toggles auto hide mode. |
|
Removes the pane from the dock site, default slider, or mini-frame window where it is currently docked. (Overrides CBasePane::UndockPane.) |
|
|
Protected Methods
Name |
Description |
---|---|
Called by the framework when a pane has been docked. |
|
Called by the framework when a pane has floated. |
|
Called by the framework when the pane is about to be docked. |
|
Called by the framework when a pane is about to float. |
Data Members
Name |
Description |
---|---|
Enables consistent handling of the minimal size for panes. |
|
Contains recent docking information. |
Remarks
Usually you do not instantiate CPane objects directly. If you need a pane with docking functionality, you should derive your object from CDockablePane. If you need toolbar functionality, you should derive your object from CMFCToolBar.
When you derive your class from CPane, your class can be docked in a CDockSite and it can float in a CPaneFrameWnd.
Inheritance Hierarchy
Requirements
Header: afxPane.h