Click here to Skip to main content
15,911,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Adding a data source question Pin
hiseldl5-Sep-02 5:38
hiseldl5-Sep-02 5:38 
GeneralRe: Adding a data source question Pin
Pavel Klocek5-Sep-02 5:43
Pavel Klocek5-Sep-02 5:43 
Generalgraceful exit, and safeguards - help! Pin
ns4-Sep-02 9:45
ns4-Sep-02 9:45 
GeneralRe: graceful exit, and safeguards - help! Pin
Chris Losinger4-Sep-02 10:00
professionalChris Losinger4-Sep-02 10:00 
GeneralRe: graceful exit, and safeguards - help! Pin
Stephane Rodriguez.4-Sep-02 10:44
Stephane Rodriguez.4-Sep-02 10:44 
GeneralRe: graceful exit, and safeguards - help! Pin
Tomasz Sowinski4-Sep-02 23:01
Tomasz Sowinski4-Sep-02 23:01 
GeneralCRichEditCtrl and URL link … Pin
Hadi Rezaee4-Sep-02 9:06
Hadi Rezaee4-Sep-02 9:06 
GeneralRe: CRichEditCtrl and URL link … Pin
Matthew R. Miller4-Sep-02 10:22
Matthew R. Miller4-Sep-02 10:22 
Yeah, but the user has to have RichEdit 2.0 on the system, so make sure you program a fail safe... most will have it but all it takes is that one who doesn't. But any way here you go.


<br />
	<br />
	// Initiallize<br />
	HANDLE m_hRichEdit2 = LoadLibrary(_T("RICHED20.DLL"));<br />
	if (m_hRichEdit2 == NULL)	<br />
	{		<br />
		// You could not allow them to run your program at all, or work around people who don't have 2.0<br />
		AfxMessageBox("Failed to initialize rich edit 2.0", MB_OK | MB_ICONEXCLAMATION);		<br />
		return FALSE;	<br />
	} <br />
	<br />
	// Turn it on and off<br />
	CRichEditCtrl m_ctlEdit;<br />
	// -- On<br />
	if (m_hRichEdit2 != NULL)<br />
		m_ctlEdit.SendMessage(EM_AUTOURLDETECT, (WPARAM)TRUE, 0);	<br />
	// -- Off<br />
	if (m_hRichEdit2 != NULL)<br />
		m_ctlEdit.SendMessage(EM_AUTOURLDETECT, (WPARAM)FALSE, 0);<br />
	<br />
	<br />
	// Don't forget to clean up<br />
	if (m_hRichEdit2 != NULL)<br />
	{<br />
		::FreeLibrary(m_hRichEdit2);<br />
	}	<br />
<br />


<><><><><><><><><><><><><><>
Matthew R. Miller
mattrmiller@computersmarts.net
www.computersmarts.net
GeneralRe: CRichEditCtrl and URL link … Pin
Hadi Rezaee4-Sep-02 10:34
Hadi Rezaee4-Sep-02 10:34 
GeneralRe: CRichEditCtrl and URL link … Pin
Matthew R. Miller4-Sep-02 10:45
Matthew R. Miller4-Sep-02 10:45 
GeneralRe: CRichEditCtrl and URL link … Pin
Hadi Rezaee4-Sep-02 10:51
Hadi Rezaee4-Sep-02 10:51 
GeneralRe: CRichEditCtrl and URL link … Pin
Matthew R. Miller4-Sep-02 15:50
Matthew R. Miller4-Sep-02 15:50 
GeneralRe: CRichEditCtrl and URL link … Pin
Hadi Rezaee4-Sep-02 12:33
Hadi Rezaee4-Sep-02 12:33 
GeneralRe: CRichEditCtrl and URL link … Pin
Matthew R. Miller4-Sep-02 15:53
Matthew R. Miller4-Sep-02 15:53 
GeneralRe: CRichEditCtrl and URL link … Pin
Matthew R. Miller4-Sep-02 15:57
Matthew R. Miller4-Sep-02 15:57 
GeneralRe: CRichEditCtrl and URL link … Pin
Matthew R. Miller4-Sep-02 16:00
Matthew R. Miller4-Sep-02 16:00 
GeneralRe: CRichEditCtrl and URL link … Pin
Hadi Rezaee4-Sep-02 22:43
Hadi Rezaee4-Sep-02 22:43 
GeneralRe: CRichEditCtrl and URL link … Pin
Matthew R. Miller5-Sep-02 4:35
Matthew R. Miller5-Sep-02 4:35 
GeneralRe: CRichEditCtrl and URL link … Pin
Hadi Rezaee5-Sep-02 5:31
Hadi Rezaee5-Sep-02 5:31 
GeneralRe: CRichEditCtrl and URL link … Pin
Matthew R. Miller5-Sep-02 7:51
Matthew R. Miller5-Sep-02 7:51 
GeneralRe: CRichEditCtrl and URL link … Pin
Hadi Rezaee5-Sep-02 10:44
Hadi Rezaee5-Sep-02 10:44 
GeneralRead Mime Settings Pin
Matt Newman4-Sep-02 8:33
Matt Newman4-Sep-02 8:33 
GeneralRe: Read Mime Settings Pin
Andreas Saurwein4-Sep-02 11:37
Andreas Saurwein4-Sep-02 11:37 
GeneralRe: Read Mime Settings Pin
Matt Newman5-Sep-02 8:59
Matt Newman5-Sep-02 8:59 
Generalquestion about deleting a record in a database table. Pin
ns4-Sep-02 8:34
ns4-Sep-02 8:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.