Hi,
Attached is a bitmap indicating my question. By modify I mean changing the back gorund color, adding controls etc. Thanks for your time.
Printable View
Hi,
Attached is a bitmap indicating my question. By modify I mean changing the back gorund color, adding controls etc. Thanks for your time.
MFC uses several private classes—CDockBar, CMiniDockFrameWnd, and CDockContext, all declared in afxpriv.h—to implement docking. These classes implement the region you specified.
So in order to modify it you have to derive from these classes if possible, or you have to create your ownerdraw toolbar and dockbar (like in guitoolkit for example).
Sorry, but I don't think there is a way to do this in only 20 minutes. It will take a lot of work to do this, I think.
greets,
timv
First tell how u r Creating your ToolbarQuote:
Originally Posted by MrBeans
you can by using TBBUTTON structure fill the structure and pass to your toolbar
with the help of SendMessage
like
Code:int iCopy=0;
TBBUTTON tbb[2];
iCopy = SendMessage(hwndTB, TB_ADDSTRING, (WPARAM) 0, (LPARAM) (LPSTR)"Save");
//hwndTB is the handle of your ToolbarWindow
tbb[0].iBitmap =0 ;
tbb[0].idCommand = 11;
tbb[0].fsState = TBSTATE_ENABLED;
tbb[0].fsStyle = TBSTYLE_BUTTON|TBSTYLE_AUTOSIZE ;
tbb[0].dwData = 0;
tbb[0].iString = iCopy;
SendMessage(hwndTB, TB_ADDBUTTONS, (WPARAM)2,(LPARAM) (LPTBBUTTON) &tbb);
SendMessage(hwndTB, TB_AUTOSIZE, 0, 0);
Any other ideas on this one?