Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CRicheditCtrl in WTL

CRicheditCtrl in WTL

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestionlearning
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    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:

    B 1 Reply Last reply
    0
    • L Lost User

      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:

      B Offline
      B Offline
      Bjarke Viksoe
      wrote on last edited by
      #2

      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

      L 1 Reply Last reply
      0
      • B Bjarke Viksoe

        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

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Thanks, that's a nice website BTW.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups