-
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....
-
March 6th, 2006, 07:37 AM
#2
Re: Richedit Control
It is not clear whether you are using (how - ?) or not the "HINSTANCE hInstRich" after LoadLibrary call.
-
March 6th, 2006, 08:33 AM
#3
Re: Richedit Control
Originally Posted by VictorN
It is not clear whether you are using (how - ?) or not the "HINSTANCE hInstRich" after LoadLibrary call.
Thanks friend VictorN,
HINSTANCE(hInstRich) is used to check that either the library we load is loaded successfully or not.
waiting
-
March 6th, 2006, 08:42 AM
#4
Re: Richedit Control
Originally Posted by harish_dixit1
Thanks friend VictorN,
HINSTANCE(hInstRich) is used to check that either the library we load is loaded successfully or not.
waiting
Well, suppose "the library ... is loaded successfully". How will it (the library) be used then?
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
|