Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to update the color button of toolbar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to update the color button of toolbar

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


Joined: 23 June 2003
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote monterey Quote  Post ReplyReply Direct Link To This Post Topic: How to update the color button of toolbar
    Posted: 23 June 2003 at 8:55pm

Hi all,

I use Xtreme Toolkit to implement my application. I added a color drop down button in the tool box. Everything works fine. However, I need to update color button sometime in the code. For example, when application starts up it shows red color in the color picker button. When I load a document I need the button shows blue color. How to do this?

Thanks in advance.

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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 June 2003 at 2:54pm

for office XP mode use:

#include "../src/XTImageManager.h"
void CMainFrame::SwitchToolBarIcon(UINT nIDFrom, UINT nIDTo)
{
 CXTImage* pImage = XTImageManager()->GetImage(nIDTo, TRUE);
 XTImageManager()->AddIcon(nIDFrom, pImage->GetIcon(), CSize(16, 16), TRUE, TRUE);
}

 

for office 2000 use m_wndToolBar.SetButtonInfo()

 

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.266 seconds.