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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MDI with CRicheditView question

MDI with CRicheditView question

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
6 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.
  • S Offline
    S Offline
    squizz
    wrote on last edited by
    #1

    Hi, I created a MDI app with a CRicheditView. Works fine but I'd like to modify the Richedit style, i.e. add auto horizontal scroll to avoid line wrapping. usualy, this is done through create(style, .....). But I can't find where the richedit is created in the MDI appwizard generated code :confused: help !

    M 1 Reply Last reply
    0
    • S squizz

      Hi, I created a MDI app with a CRicheditView. Works fine but I'd like to modify the Richedit style, i.e. add auto horizontal scroll to avoid line wrapping. usualy, this is done through create(style, .....). But I can't find where the richedit is created in the MDI appwizard generated code :confused: help !

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      Check this: CRichEditView::GetRichEditCtrl :) Mazy Don't Marry a Person You Can Live With... Marry Someone You Can Not Live Without

      S 1 Reply Last reply
      0
      • M Mazdak

        Check this: CRichEditView::GetRichEditCtrl :) Mazy Don't Marry a Person You Can Live With... Marry Someone You Can Not Live Without

        S Offline
        S Offline
        squizz
        wrote on last edited by
        #3

        yeah, knew this one. the problem il that I see only the SetOptions() method to change style, I tried : GetRichEditCtrl().SetOptions(ECOOP_SET, ECO_AUTOHSCROLL | ECO_WANTRETURN | ECO_AUTOVSCROLL); but seems to change nothing.

        M 1 Reply Last reply
        0
        • S squizz

          yeah, knew this one. the problem il that I see only the SetOptions() method to change style, I tried : GetRichEditCtrl().SetOptions(ECOOP_SET, ECO_AUTOHSCROLL | ECO_WANTRETURN | ECO_AUTOVSCROLL); but seems to change nothing.

          M Offline
          M Offline
          Mazdak
          wrote on last edited by
          #4

          Yes,you are right ,it doesn't work. There is MFC sample in MSDN,WORDPAD ,maybe it helps you ,I don't have it to check it,if you find the answer in it please reply me. :) Mazy Don't Marry a Person You Can Live With... Marry Someone You Can Not Live Without

          S 1 Reply Last reply
          0
          • M Mazdak

            Yes,you are right ,it doesn't work. There is MFC sample in MSDN,WORDPAD ,maybe it helps you ,I don't have it to check it,if you find the answer in it please reply me. :) Mazy Don't Marry a Person You Can Live With... Marry Someone You Can Not Live Without

            S Offline
            S Offline
            squizz
            wrote on last edited by
            #5

            wordpad sample does it. I just can't figure how... <psycho scream> AAHAHAHAHAAAHAHAHAHHAHAHAHAHA </psycho scream> I'll go to sleep, local time is 23:48.

            M 1 Reply Last reply
            0
            • S squizz

              wordpad sample does it. I just can't figure how... <psycho scream> AAHAHAHAHAAAHAHAHAHHAHAHAHAHA </psycho scream> I'll go to sleep, local time is 23:48.

              M Offline
              M Offline
              Mazdak
              wrote on last edited by
              #6

              I work on it a little,we have to change "wrap" property In the example in "option" dialog box it change radio button to no wrap but I couldn't found where it take effect,I put new message,maybe someboddy HELP us :(( Mazy Don't Marry a Person You Can Live With... Marry Someone You Can Not Live Without

              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