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.
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 ...
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
My amature IT Blog: http://everything-geeky.blogspot.com/
My Flash games: http://flashweed.blogspot.com/
(and, sorry for my amature english in the posts)
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.