Thread: Removing the BOLD

  1. #1
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Kurunegala Colony, Sri Lanka, Sri Lanka

    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.
    My amature IT Blog:
    My Flash games:

    (and, sorry for my amateur English)

  2. #2
    Join Date
    Jan 2002
    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, 08: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