00001
00037 #ifndef __NMEMFC__
00038 #define __NMEMFC__
00039
00040 #include "NME.h"
00041 #include "NMEStyle.h"
00042
00043 #include <afxrich.h>
00044
00050 typedef void (*NMEMFCLinkFun)(NMEConstText link, void *data);
00051
00063 void NMEMFCSetRichText(CRichEditCtrl &c,
00064 char const *input, int inputLength = -1,
00065 bool replaceSel = FALSE,
00066 CHARFORMAT const *plainTextCharFormat = NULL,
00067 bool links = FALSE);
00068
00080 void NMEMFCSetRichText(CRichEditCtrl &c,
00081 WCHAR const *input, int inputLength = -1,
00082 bool replaceSel = FALSE,
00083 CHARFORMAT const *plainTextCharFormat = NULL,
00084 bool links = FALSE);
00085
00092 void NMEMFCEnLink(NMHDR const *pNMHDR, LRESULT* pResult,
00093 NMEMFCLinkFun linkFun, void *linkFunData = NULL);
00094
00102 void NMEMFCLinkFunURL(NMEConstText link, void *data = NULL);
00103
00104 #endif