Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Creates a CMFCDropDownFrame object.
virtual BOOL Create(
CWnd* pWndParent,
int x,
int y,
CMFCDropDownToolBar* pWndOriginToolbar
);
Parameters
Parameter |
Description |
[in] pWndParent |
The parent window of the drop-down frame. |
[in] x |
The horizontal screen coordinate for the location of the down-down frame. |
[in] y |
The vertical screen coordinate for the location of the down-down frame. |
[in] pWndOriginToolbar |
The toolbar that has the drop-down buttons that this method uses to populate the new drop-down frame object. |
Return Value
TRUE if the drop-down frame was successfully created; otherwise FALSE.
Remarks
This method calls the base CMiniFrameWnd::CreateEx method to create the drop-down frame window with the WS_POPUP style. The drop-down frame window appears at the specified screen coordinates. This method fails if the CMiniFrameWnd::CreateEx method returns FALSE.
The CMFCDropDownFrame class creates a copy of the provided CMFCDropDownToolBar parameter. This method copies the button images and button states from the pWndOriginToolbar parameter to the m_pWndOriginToolbar data member.
Requirements
Header: afxdropdowntoolbar.h