469,111 Members | 1,977 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,111 developers. It's quick & easy.

RichTextbox. Get attributes of character under mouse cursor ?

Using VB6.

With a RichTextbox, I can get the position of the character under the mouse
pointer with an API call like: SendMessage(hWnd, EM_CHARFROMPOS, 0&, Pointl)
by passing the mouse x,y co-ordinates in the Pointl structure.

But does anyone know a way to get the *attributes* of the character (Bold,
Underline, etc) WITHOUT affecting the textbox in any way?

Any method that requires the character to be the selected text (like
EM_GETCHARFORMAT) is not suitable.


Jul 17 '05 #1
0 3713

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by AttiDude | last post: by
5 posts views Thread by pinocchio | last post: by
reply views Thread by James dean | last post: by
reply views Thread by Nathan | last post: by
8 posts views Thread by Dennis | last post: by
reply views Thread by Lou | last post: by
2 posts views Thread by =?Utf-8?B?TWFyayBDb2xsYXJk?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by kglaser89 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.