Making my apps VC 4.2 toolbars look like in VC 5 
Author Message
 Making my apps VC 4.2 toolbars look like in VC 5

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?

Thanks in advance,

Greg
~~~~



Sun, 19 Dec 1999 03:00:00 GMT  
 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


Tue, 21 Dec 1999 03:00:00 GMT  
 Making my apps VC 4.2 toolbars look like in VC 5

August edition of Microsoft Systems Journal covers this extensively
in the C++ Q&A section by Paul DiLascia.

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?

> Thanks in advance,

> Greg
> ~~~~



Fri, 31 Dec 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Looking for a good statistics package for VC 4.2

2. Problems debugging MFC under VC 4.2 with separate VC 5.0 installation present

3. VC 4.2 link error linking static libraries from VC 6.0

4. Executing .bat file from VC 1.52 AND VC 4.2

5. Can't compile VC 4.1 project in VC 4.2

6. Converting from VC 4.2 to VC 5.0

7. VC 4.2 back to VC 1.52

8. Starter App made with AppWizard of VC 5.0 gives me link errors

9. Microsoft VC 4.2 conditional compiling

10. Using DAO In DLL ( VC 4.2 )

11. VC 4.2 with Jet 3.5

12. MS VC 4.2

 

 
Powered by phpBB® Forum Software