CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2009
    Posts
    128

    Question how to add color palette ?

    how to add color palette so that i can change the color of text.

  2. #2
    Join Date
    Feb 2005
    Posts
    2,160

    Re: how to add color palette ?

    You'll have to give a little more detail on what you are trying to do.

  3. #3
    Join Date
    Apr 2009
    Posts
    598

    Re: how to add color palette ?

    What is your environment?
    If you program with API of the GDI, then there is no palette for the text.
    Instead, you use SetTextColor(hdc, font_foreground_color); before writing text. Then, it is too late to change the color. The only option would be to write over the old text.

  4. #4
    Join Date
    Nov 2009
    Posts
    128

    Re: how to add color palette ?

    i have displayed time in caption bar.and the thing is this time's color should be changed as selected at run time.
    Used a Dialogbased application.

    i have saved time in CTime strTime;

    how to change the color of this time ?

    help me with an example plz.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured