|
-
Dec 12th, 2001, 05:52 PM
#1
Thread Starter
Member
RichEdit 2.0 help
Hello all,
When using the RichTextBox that comes with VB, the SelBold property returns one of three values:
True - ALL of the selected text is bold
False - NONE of the selected text is bold
Null - Some of the selected text is bold, some is not.
Now, on to the problem:
I can't figure out how to tell if some, but not all, of the selected text is bold. I have the following code:
VB Code:
Dim cf As CHARFORMAT2
Dim selBold As Boolean
cf.cbSize = Len(cf)
cf.dwMask = CFM_BOLD
SendMessage hWndRichEd, EM_GETCHARFORMAT, SCF_SELECTION, cf
selBold = ((cf2.dwEffects And CFE_BOLD) = CFE_BOLD)
This will only give me a true or a false...any ideas on how to determine if some, but not all, of the selected text is bold????
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|