CRicheditCtrl in WTL
-
Ok, I tried to place a Rich Edit Ctrl on a Dialog in the Resource editor for my WTL app. When I run the app the dialog can no longer be created. I had to add an initialization for the IP Address control to get that to work. Is there something I need to do to get Rich Edit controls to work in a WTL app? Please Help Me :confused:
-
Ok, I tried to place a Rich Edit Ctrl on a Dialog in the Resource editor for my WTL app. When I run the app the dialog can no longer be created. I had to add an initialization for the IP Address control to get that to work. Is there something I need to do to get Rich Edit controls to work in a WTL app? Please Help Me :confused:
Yes, you need to load the rtf dll to use... So in your tWinMain()... HINSTANCE hInstRich = ::LoadLibrary(CRichEditCtrl::GetLibraryName()); ... int nRet = Run(lpstrCmdLine, nCmdShow); ... ::FreeLibrary(hInstRich); Use the define in stdafx.h to detemine rtf verion... #define _RICHEDIT_VER 0x0200 Have a look at my website below. Lots of nice WTL samples there. Bjarke Viksoe My code at: www.viksoe.dk/code
-
Yes, you need to load the rtf dll to use... So in your tWinMain()... HINSTANCE hInstRich = ::LoadLibrary(CRichEditCtrl::GetLibraryName()); ... int nRet = Run(lpstrCmdLine, nCmdShow); ... ::FreeLibrary(hInstRich); Use the define in stdafx.h to detemine rtf verion... #define _RICHEDIT_VER 0x0200 Have a look at my website below. Lots of nice WTL samples there. Bjarke Viksoe My code at: www.viksoe.dk/code