Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Implements a mini-frame window that contains one pane. The pane fills the client area of the window.
class CPaneFrameWnd : public CWnd
Members
Public Methods
Name |
Description |
---|---|
Adds a pane. |
|
Adds or removes a pane from the global list. |
|
Adjusts the layout of the mini-frame window. |
|
|
|
Calculates the size of the borders for a mini-frame window. |
|
Calculate the expected rectangle of a docked window. |
|
Determines whether the current pane can be docked to another pane or frame window. |
|
Determines whether the mini-frame window can be docked to a pane. |
|
|
|
Converts the pane to a tabbed document. |
|
Creates a mini-frame window and attaches it to the CPaneFrameWnd object. |
|
Creates a mini-frame window and attaches it to the CPaneFrameWnd object. |
|
Docks the pane. |
|
Finds a pane with the specified control ID in the global list of floating panes. |
|
Finds the mini-frame window containing a user-supplied point. |
|
Returns the height of the mini-frame window caption. |
|
Calculates the bounding rectangle of a mini-frame window caption. |
|
Returns the caption text. |
|
|
|
Returns the docking mode. |
|
Returns the first visible pane that is contained in a mini-frame window. |
|
|
|
Returns a pane that is contained in the mini-frame window. |
|
Returns the number of panes that are contained in a mini-frame window. |
|
|
|
|
|
|
|
Returns the number of visible panes that are contained in a mini-frame window. |
|
Determines what part of a mini-frame window is at a given point. |
|
|
|
|
|
Determines whether a mini-frame window should be rolled down. |
|
Determines whether a mini-frame window should be rolled up. |
|
Stops the docking timer. |
|
Loads the pane's state from the registry. |
|
Determines if docking is possible. |
|
Docks the mini-frame window at its most recent position. |
|
Stops the rollup timer. |
|
Moves the mini-frame window by a specified offset. |
|
Adjusts the layout of a contained pane. |
|
Sets the rollup timer. |
|
Called by the framework when a pane in the mini-frame window is hidden or displayed. |
|
Returns a pane if it contains a user-supplied point inside a mini-frame window. |
|
|
|
CPaneFrameWnd::PreTranslateMessage |
Used by class CWinApp to translate window messages before they are dispatched to the TranslateMessage and DispatchMessage Windows functions. |
Redraws all mini-frame windows. |
|
Called by the framework to remove non-valid panes. |
|
Removes a pane from the mini-frame window. |
|
Replaces one pane with another. |
|
Saves the pane's state to the registry. |
|
CPaneFrameWnd::Serialize |
Reads or writes this object from or to an archive. |
Sets caption buttons. |
|
|
|
|
|
Sets the docking timer. |
|
Sets the docking state. |
|
|
|
Called by the framework to set the predocking state. |
|
Adjusts the size of a mini-frame window so that it is equivalent in size to a contained pane. |
|
Tears off a menu. |
|
|
|
|
Protected Methods
Name |
Description |
---|---|
Determines whether a mini-frame window should be rolled up or down. |
|
Draws the borders of a mini-frame window. |
Data Members
Name |
Description |
---|---|
Specifies whether to register the window class with the CS_SAVEBITS class style. |
Remarks
The framework automatically creates a CPaneFrameWnd object when a pane is switched from a docked state to a floating state.
A mini-frame window can be dragged with its contents visible (immediate docking) or using a drag rectangle (standard docking). The docking mode of the mini-frame's container pane determines the mini-frame's dragging behavior. For more information, see CBasePane::GetDockingMode.
A mini-frame window displays buttons on the caption in accordance with the contained pane style. If the pane can be closed (CBasePane::CanBeClosed), it displays a Close button. If the pane has the AFX_CBRS_AUTO_ROLLUP style, it displays a pin.
If you derive a class from CPaneFrameWnd, you must tell the framework how to create it. Either create the class by overriding CPane::CreateDefaultMiniframe, or set the CPane::m_pMiniFrameRTC member so that it points to the runtime class information for your class.
Inheritance Hierarchy
Requirements
Header: afxPaneFrameWnd.h