Removing the BOLD

This is a discussion on Removing the BOLD within the Windows Programming forums, part of the Platform Specific Boards category; Hi, i know how to bold some text in a Richedit control using SetSelectionCharFormat(). But i'm not sure how to ...

  1. #1
    Android
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    363

    Removing the BOLD

    Hi, i know how to bold some text in a Richedit control using SetSelectionCharFormat(). But i'm not sure how to find out whether a selected text is bold and remove the bold. Please help. Thx.
    Some useless programs i've wrote : slprogrammersheaven
    Youtube: http://www.youtube.com/user/geekyzine
    My amature IT Blog: http://everything-geeky.blogspot.com/
    My Flash games: http://flashweed.blogspot.com/

    (and, sorry for my amature english)

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    CRichEditCtrl::GetSelectionCharFormat looks to be a safe bet - ie. use the 'get' method to determine whether it is or not and the 'set' method to change it; you might just want to just use the 'set' method exclusively if you know you're going to be changing the selection to give it specific, known attributes.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. bold static text
    By Bleech in forum Windows Programming
    Replies: 10
    Last Post: 08-22-2007, 05:43 PM
  2. Tree-view bold items
    By mobazr in forum Windows Programming
    Replies: 3
    Last Post: 03-14-2005, 07:45 AM
  3. Removing from the front of a Vector
    By Zildjian in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2004, 10:49 AM
  4. Removing text between /* */ in a file
    By 0rion in forum C Programming
    Replies: 2
    Last Post: 04-05-2004, 08:54 AM
  5. How to make a word be bold styled?
    By zaestau in forum C++ Programming
    Replies: 4
    Last Post: 10-23-2003, 02:20 PM

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