Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Creating a RibbonBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Creating a RibbonBar

 Post Reply Post Reply
Author
Message
baerten View Drop Down
Newbie
Newbie
Avatar

Joined: 28 September 2006
Location: Germany
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote baerten Quote  Post ReplyReply Direct Link To This Post Topic: Creating a RibbonBar
    Posted: 28 September 2006 at 4:52am
Hi,

i like to create a RibbonBar like in the "Ribbon MDI Sample"

So i create a new Project in VS2003, choose ToolkitPro Project, MDI layout, Office2003 Style, ...

if i begin to applicate the sample code on my project, there is directly an error on this line :

    // Get a pointer to the command bars object.
    CXTPCommandBars* pCommandBars = GetCommandBars();
    if(pCommandBars == NULL)
    {
        TRACE0("Failed to create command bars object.\n");
        return -1;      // fail to create
    }
   
    pCommandBars->SetTheme(xtpThemeRibbon);

Which configuration must i set to create a RibbonBar?

Is there a step-by-step Tutorial to add a RibbonBar?

Thanks !
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2006 at 8:56am
Hi,
You need add bitmaps of Ribbon to your exe.
 
If you use 10.3.1 just add
#include "Ribbon\Styles\Office2007Blue\Office2007Blue.rc"
in your res\app.rc2 file.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
baerten View Drop Down
Newbie
Newbie
Avatar

Joined: 28 September 2006
Location: Germany
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote baerten Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2006 at 10:18am
Thanks for the help

Now it works fine
Back to Top
baerten View Drop Down
Newbie
Newbie
Avatar

Joined: 28 September 2006
Location: Germany
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote baerten Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2006 at 10:56am


Where i can add these large icons to the RibbonBar?

I inserted the 4 .png files to my "res" directory.

So, how i can create my own icons and insert them into the Bar

Big thanks
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.