
Making my apps VC 4.2 toolbars look like in VC 5
On Wed, 2 Jul 1997 15:58:42 +0100, "Greg Whitfield"
Quote:
>I have just upgraded from 4.2 to 5, and was much taken with the new flat
>toolbar look. What do I need to do to change my app to use this new stype.
>I cannot find any ready reference in the help (though I have not managed to
>find my way all around the new help system yet...).
>My current approach is "old" MFC, where the mainframe has a CToolBar member
>variable. In OnCreate, it calls each toolbar's Create function and sets the
>bitmap - e.g.:
> if (!m_wndFilterBar.Create(this, dwStyle, ID_TOOLBARS_FILTERTOOLBAR) ||
> . !m_wndFilterBar.LoadBitmap(IDB_FILTERBAR) ||
>. !m_wndFilterBar.SetButtons(filterbuttons,
> . sizeof(filterbuttons)/sizeof(UINT)))
> {
> . TRACE0("Failed to create filterbar\n");
> . return -1; // fail to create
> }
>Is this code easily alterable to get the new style?
There are 3rd party products that support this style. Additionally
there have been articles (in MSJ I believe) about this. I think the
DLLs that MFC provides are in the ActiveX kit but you should expect
problems with being able to redistribute them. (As you can probably
tell I don't use the MFC versions myself.) -steve
==========================================================
for flat-style docking toolbar, resizable docking windows,
and much more - visit http://www.CodeTools.com/showcase