CMFCAutoHideButton::Create
Creates and initializes an auto-hide button.
virtual BOOL Create(
CMFCAutoHideBar* pParentBar,
CDockablePane* pAutoHideWnd,
DWORD dwAlignment
);
Parameters
[in] pParentBar
A pointer to the parent toolbar.[in] pAutoHideWnd
A pointer to a CDockablePane object. This auto-hide button hides and shows that CDockablePane.[in] dwAlignment
A value that specifies the alignment of the button with the main frame window.
Return Value
Nonzero if successful; otherwise 0.
Remarks
When you create a CMFCAutoHideButton object, you must associate the auto-hide button with a specific CDockablePane. The user can use the auto-hide button to hide and show the associated CDockablePane.
The dwAlignment parameter indicates where the auto-hide button resides in the application. The parameter can be any one of the following values:
CBRS_ALIGN_LEFT
CBRS_ALIGN_RIGHT
CBRS_ALIGN_TOP
CBRS_ALIGN_BOTTOM
Requirements
Header: afxautohidebutton.h