CPane Class
The CPane class is an enhancement of the CControlBar Class. If you are upgrading an existing MFC project, 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. |
|
Specifies whether the pane is listed in the runtime-generated list of panes for the application. |
|
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 whether the pane can be docked at the specified base pane. |
|
Determines whether the pane can be converted to a tabbed document. |
|
Converts a dockable pane 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 method. |
|
Docks the floating pane to a base pane. |
|
Docks a pane by using outline (standard) docking. |
|
Docks a dockable pane to a frame. (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 amount, in pixels, that the pane can expand. |
|
Returns the amount, in pixels, that the pane can shrink. |
|
Returns the width of the borders of the pane. |
|
Returns the hot spot for the pane. |
|
Returns the dock row in which the pane is docked. |
|
Determines whether the pane is in exclusive row mode. |
|
Returns the hot spot that is stored in an underlying CMFCDragFrameImpl object. |
|
Retrieves the minimum allowed size for the pane. |
|
Retrieves the title for the pane. |
|
CPane::GetResizeStep |
Used internally. |
CPane::GetThisClass |
Used by the framework to obtain a pointer to the CRuntimeClass object that is associated with this class type. |
Retrieves the virtual rectangle of the pane. |
|
As the pane is being moved, this method analyzes the position of the pane relative to other panes, dock rows, and mini-frame windows, and returns the appropriate AFX_CS_STATUS value. |
|
Specifies whether the pane is being dragged. |
|
Specifies whether the pane is in a multi-pane frame window. (Overrides CBasePane::IsInFloatingMultiPaneFrameWnd.) |
|
Determines whether the pane is left of (or above) the specified rectangle. |
|
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.) |
|
Loads the state of the pane from the registry. (Overrides CBasePane::LoadState.) |
|
Moves the pane and the virtual rectangle by the specified amount. |
|
Moves the pane to the specified rectangle. |
|
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 chooses the Close button on the caption for the pane. |
|
CPane::OnProcessDblClk |
Used internally. |
Called by the framework when a special pane menu is about to be displayed. |
|
Called by the framework when a special pane menu is about to be displayed. |
|
CPane::PrepareToDock |
Used internally. |
Recalculates layout information for the pane. (Overrides CBasePane::RecalcLayout.) |
|
Saves the state of the pane to the registry. (Overrides CBasePane::SaveState.) |
|
Flags a pane as active. |
|
Sets the border values of the pane. |
|
Sets the hot spot for the pane. |
|
Restores docking state information for the pane. |
|
Enables or disables the exclusive row mode. |
|
Sets the runtime class information for the default mini-frame window. |
|
Sets the minimum allowed size for the pane. |
|
Sets the virtual rectangle of the pane. |
|
Stretches the pane vertically or horizontally based on docking style. |
|
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.) |
|
Updates the virtual rectangle. |
Protected Methods
Name |
Description |
---|---|
Called by the framework when a pane has been docked. |
|
Called by the framework when a pane has been floated. |
|
Called by the framework when the pane is about to be docked. |
|
Called by the framework when a pane is about to be floated. |
Data Members
Name |
Description |
---|---|
Enables consistent handling of the minimal size for panes. |
|
Contains recent docking information. |
Remarks
Typically, CPane objects are not instantiated directly. If you require a pane that has docking functionality, derive your object from CDockablePane. If you require toolbar functionality, derive your object from CMFCToolBar.
When you derive a class from CPane, it can be docked in a CDockSite and it can be floated in a CPaneFrameWnd.
Inheritance Hierarchy
Requirements
Header: afxPane.h