void CBCGPExplorerToolBar::EnableNavigationButtons | ( | UINT | nBackID, |
UINT | nForwardID, | ||
UINT | nHistoryID, | ||
UINT | nHistoryItemID, | ||
int | xRightMargin = 15 , |
||
UINT | nUpID = 0 , |
||
BOOL | bSimplifiedNavigationButtons = FALSE , |
||
UINT | nHomeID = 0 , |
||
UINT | nRefreshID = 0 , |
||
UINT | nStopID = 0 |
||
) |
Enables navigation buttons.
Call this method to enable navigation buttons on the explorer toolbar.
You should specify command IDs to be used for "back", "forward" and "history" buttons. The "history" button opens a popup menu with navigation history items.
If you wish to display a navigation history, you must specify nHistoryItemID and override CBCGPFrameWnd::OnShowPopupMenu in the main frame. In this override you should replace dummy items having nHistoryItemID with the real menu buttons.
nBackID | Specifies the "back" command ID. |
nForwardID | Specifies the "forward" command ID. |
nHistoryID | Specifies the "history" command ID. |
nHistoryItemID | Command ID of a dummy item, which should be replaced later by real history items in the OnShowPopupMenu override. |
xRightMargin | Spacing between navigation buttons and the first toolbar button. |
nUpID | Specifies the "up level" command ID. |
bSimplifiedNavigationButtons | Specifies whether the navigation buttons should be drawn using simple icons (arrows). |
nHomeID | Specifies the "home" command ID. |
nRefreshID | Specifies the "refresh" command ID. |
nStopID | Specifies the "stop" command ID. |