Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Error in Ribbon sample
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Error in Ribbon sample

 Post Reply Post Reply
Author
Message
AlexXF View Drop Down
Newbie
Newbie


Joined: 10 April 2007
Location: Czech Republic
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote AlexXF Quote  Post ReplyReply Direct Link To This Post Topic: Error in Ribbon sample
    Posted: 25 April 2007 at 3:13am

Dear developers, please fix your 'Ribbon' sample.

I've spend all day to find this error, why i can't set Hot/Pressed/Disabled image for CXTToolbarSystemButton.
 
file: MainFrame.cpp
 
Was been:

pControlFile->SetIconId(IDB_GEAR);
UINT uCommand = {IDB_GEAR};

pCommandBars->GetImageManager()->SetIcons(IDB_GEAR, &uCommand, 1, (CSize)0, xtpImageNormal);

CORRECT:

pCommandBars->GetImageManager()->SetIcons(IDR_GEARHOT, &uCommand, 1, (CSize)0, xtpImageNormal);

Back to Top
AlexXF View Drop Down
Newbie
Newbie


Joined: 10 April 2007
Location: Czech Republic
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote AlexXF Quote  Post ReplyReply Direct Link To This Post Posted: 25 April 2007 at 3:14am
Oh... make an error in 'Was been section'
 
Was been:
 
pCommandBars->GetImageManager()->SetIcons(IDB_GEAR, &uCommand, 1, xtpImageNormal);
 
Correct:
pCommandBars->GetImageManager()->SetIcons(IDB_GEAR, &uCommand, 1, (CSize)0, xtpImageNormal);
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: 25 April 2007 at 6:47am
Thanks, you right. Changed.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.