description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: CDockablePaneAdapter Class |
CDockablePaneAdapter Class |
11/04/2016 |
|
|
6ed6cf82-f39c-4d0c-bf7c-8641495cf8f3 |
Provides docking support for CWnd
-derived panes.
class CDockablePaneAdapter : public CDockablePane
Name | Description |
---|---|
CDockablePaneAdapter::GetWrappedWnd | Returns the wrapped window. |
CDockablePaneAdapter::LoadState | (Overrides CDockablePane::LoadState.) |
CDockablePaneAdapter::SaveState | (Overrides CDockablePane::SaveState.) |
CDockablePaneAdapter::SetWrappedWnd |
Usually, the framework instantiates objects of this class when you use the CMFCBaseTabCtrl::AddTab or CMFCBaseTabCtrl::InsertTab methods.
If you want to customize the CDockablePaneAdapter
behavior, just derive a new class from it and set the runtime class information to a tabbed window by using CMFCBaseTabCtrl::SetDockingBarWrapperRTC.
CObject
└ CCmdTarget
└ CWnd
└ CBasePane
└ CPane
└ CDockablePane
└ CDockablePaneAdapter
Header: afxDockablePaneAdapter.h
Returns the underlying window for the dockable pane adapter.
virtual CWnd* GetWrappedWnd() const;
A pointer to the wrapped window.
Use this function to access the wrapped window.
Loads the state of the pane from the registry.
virtual BOOL LoadState(
LPCTSTR lpszProfileName = NULL,
int nIndex = -1,
UINT uiID = (UINT) -1);
lpszProfileName
[in] The profile name.
nIndex
[in] The profile index.
uiID
[in] The pane ID.
Saves the state of the pane to the registry.
virtual BOOL SaveState(
LPCTSTR lpszProfileName = NULL,
int nIndex = -1,
UINT uiID = (UINT) -1);
lpszProfileName
[in] The profile name.
nIndex
[in] The profile index (defaults to the control ID of the window).
uiID
[in] The pane ID.
Sets the underlying window for the dockable pane adapter.
virtual BOOL SetWrappedWnd(CWnd* pWnd);
pWnd
[in] A pointer to the window for the pane adapter to wrap.