
VB Rich Text Box Question
Hello Shane,
The RichTextBox control in VB is only a wrapper of Rich Edit control
(Riched32.dll). There are currently two DLLs that implement versions of the
rich edit control: Riched32.dll and Riched20.dll.
Riched32.dll contains the implementation of Rich Edit version 1.0 and
addresses localization issues with different builds for different
languages. Riched20.dll contains the implementation of Rich Edit version
2.0 and, in later versions of the DLL, Rich Edit version 3.0.
Both the Microsoft Foundation Classes (MFC) CRichEditCtrl class (in
Microsoft Visual C++ 6.0 and earlier) and Microsoft Visual Basic Rich Text
Box control (in Visual Basic 6.0 and earlier) use the Rich Edit version 1.0
control.
On a Microsoft Windows 2000-and-later-based system, Riched32.dll is a stub
DLL that registers the RICHEDIT window class and loads Riched20.dll.
Riched20.dll emulates the Rich Edit version 1.0 control through Rich Edit
version 3.0. Hence, you are using Rich Edit control version 2.0 or later on
a Microsoft Windows 2000-and-later-based system. However, you are using
Rich Edit control 1.0 on the Win9x system.
For more information, take a look at
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q308310
Hope this helps.
Regards,
Max
==========================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
|Subject: VB Rich Text Box Question
|
|Please help!
|
|I have a VB project that uses a Rich Text Box. I have enabled "automatic
|hyperlink detection" in this Rich Text Box (this is available in Rich Edit
|version 2.0).
|
|This works fine in Windows XP and Win2000 - however it doesn't work at all
|on win95, win98 or ME. According to this documentation the Rich Edit
|Version 2.0 is supported by all of those:
|
|http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shel...
a
|tform/commctls/richedit/richeditcontrols/aboutricheditcontrols.asp
|
|What am I doing wrong? Is there any way to get "automatic hyperlink
|detection" to work in a VB application and a Rich Text Box in win98 and ME?
|Is there a difference between a VB Rich Text Box and the Rich Edit 2.0?
|
|Thanks In Advance,
|Shane Kunkle
|
|PS) if it helps
|The following is what I mean by "automatic hyperlink detection:"
| 1) When I type www.vt.edu in this text box the text is automatically
|underlined and it is turned blue.
| 2) When I position my mouse over the text the mouse pointer turns into a
|"URL hand"
| 3) When I click on the link my application receives an EN_LINK message
|from the Rich Text Box.
|
|The following is how I enable "automatic hyperlink detection" in my Rich
|Text Box
| 1) Sending it the EM_AUTOURLDETECT Message to the text box - the text
box
|then generates EN_LINK messages
| 2) Subclass the messages for my application. When I see a EN_LINK
|message with a hyperlink click event I throw open a browser with the
webpage
|in it
|
|
|
|
|
|