Go to the documentation of this file.00001
00038
00039
00040 #ifndef __NMEMFC__
00041 #define __NMEMFC__
00042
00043 #include "NME.h"
00044 #include "NMEStyle.h"
00045
00046 #include <afxrich.h>
00047
00053 typedef void (*NMEMFCLinkFun)(NMEConstText link, void *data);
00054
00066 void NMEMFCSetRichText(CRichEditCtrl &c,
00067 char const *input, int inputLength = -1,
00068 bool replaceSel = FALSE,
00069 CHARFORMAT const *plainTextCharFormat = NULL,
00070 bool links = FALSE);
00071
00083 void NMEMFCSetRichText(CRichEditCtrl &c,
00084 WCHAR const *input, int inputLength = -1,
00085 bool replaceSel = FALSE,
00086 CHARFORMAT const *plainTextCharFormat = NULL,
00087 bool links = FALSE);
00088
00095 void NMEMFCEnLink(NMHDR const *pNMHDR, LRESULT* pResult,
00096 NMEMFCLinkFun linkFun, void *linkFunData = NULL);
00097
00105 void NMEMFCLinkFunURL(NMEConstText link, void *data = NULL);
00106
00107 #endif