CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2006
    Posts
    152

    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....

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Richedit Control

    It is not clear whether you are using (how - ?) or not the "HINSTANCE hInstRich" after LoadLibrary call.

  3. #3
    Join Date
    Jan 2006
    Posts
    152

    Re: Richedit Control

    Quote 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

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Richedit Control

    Quote 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
  •  





Click Here to Expand Forum to Full Width

Featured