if (! M_wndToolBar. CreateEx (this, TBSTYLE_FLAT WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) | |
! M_wndToolBar. LoadToolBar (IDR_MAINFRAME))
{
TRACE0 (" Failed to create the toolbar \ n ");
return -1;//fail to create
}
M_wndToolBar. ShowWindow (SW_SHOW);
RepositionBars (AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0);
What code increase after add this code can be realized? If you want to do with bitmap toolbar background how to write?
CodePudding user response:
Dock CDockablePaneAdapter provide support CWnd derived pane,