home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,104 of 10,840   
   Chris to All   
   RichTextbox. Get attributes of character   
   22 Dec 04 11:49:49   
   
   From: Chris@somewhere.in.uk   
      
   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.   
      
   Chris.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca