How To Give A Font Colour ?

This is a discussion on How To Give A Font Colour ? within the Windows Programming forums, part of the Platform Specific Boards category; I Am The Kind That Like To Program In Pure MFC Code Without Using The Wizard, Cause I Think I ...

  1. #1
    Unregistered
    Guest

    How To Give A Font Colour ?

    I Am The Kind That Like To Program In Pure MFC Code Without Using The Wizard, Cause I Think I Can Learn A Lot From There. Stupid But True.

    Here Is The Question:
    When I Create A CFont, I Create It Like Everyone Else.
    CFont *font;
    font = new CFont;
    font->CreateFont(~~~~~~~~~);
    Button->SetFont(font);


    But The Question I Been Having For Sometime But Do Not Dare To Ask Is How To Give The Font A Colour.

    Anyone That Really Know MFC, Could You Give Some Help ?
    Thanks A lot.

  2. #2
    zen
    zen is offline
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    Look up CDC::SetTextColor()

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Changing Font colour for C++
    By dutch's finest in forum C++ Programming
    Replies: 3
    Last Post: 11-28-2004, 08:11 AM
  2. How to install font programattically ?
    By cr_naik in forum Windows Programming
    Replies: 0
    Last Post: 06-27-2003, 04:20 AM
  3. Replies: 5
    Last Post: 03-01-2003, 04:52 PM
  4. DirectDraw colour matching
    By Hunter2 in forum Game Programming
    Replies: 2
    Last Post: 12-10-2002, 02:17 PM
  5. Font Colour
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 09-13-2001, 01:55 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21