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

Set the color of the color picker button

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


Joined: 12 August 2003
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote morovia Quote  Post ReplyReply Direct Link To This Post Topic: Set the color of the color picker button
    Posted: 05 January 2005 at 6:26pm

Hi,

I added a color picker drop down button using the following source:

m_wndToolBar.AddDropDownButton( ID_PICK_COLOR, RGB( 0x00, 0x00, 0xff ), RGB( 0x00, 0x00, 0x00 ),

CPS_XT_EXTENDED | CPS_XT_MORECOLORS, TRUE, TRUE );

It works fine. However, I need to change the color displayed everytime I load a new document. How to do it programatically?

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