-
March 6th, 2006, 07:25 AM
#1
Richedit Control
Hi,
I am tring to insert Rich Edit Control in My dialog box template. I am also using WTL support in My project. I dont want to use "AfxInitRichEdit". Because I dont want to ue "Afxwin.h". However i am tring to use the following code to load richedit20.dll in my project.
#if (_WIN32_IE >= 0x0300)
INITCOMMONCONTROLSEX iccx;
iccx.dwSize = sizeof(iccx);
iccx.dwICC = ICC_COOL_CLASSES|ICC_INTERNET_CLASSES| ICC_BAR_CLASSES | ICC_USEREX_CLASSES;
BOOL bRet = ::InitCommonControlsEx(&iccx);
bRet;
ATLASSERT(bRet);
#else
::InitCommonControls();
#endif
HINSTANCE hInstRich = ::LoadLibrary(CRichEditCtrl::GetLibraryName());
ATLASSERT(hInstRich != NULL);
Still The dailog bow is not displayed because of rich edit control is there in dialog box template please tell me the apprropriate way to get rid of this.
Thanks in advance....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|