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 question?

CRichEditCtrl question?

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
4 Posts 4 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
    Surender
    wrote on last edited by
    #1

    I am little new to GUI programming and especially CRichEditCtrl class. How can i implement the below using CRichEditCtrlView: For example in Wordpad if i open a new text document and uses some rich editing feautres then while saving the file it asks me "saving the file in text format looses formatting features." How do i really detect whether user has used any rich editing feautres in a text document of CRichEditCtrlView

    L A 2 Replies Last reply
    0
    • S Surender

      I am little new to GUI programming and especially CRichEditCtrl class. How can i implement the below using CRichEditCtrlView: For example in Wordpad if i open a new text document and uses some rich editing feautres then while saving the file it asks me "saving the file in text format looses formatting features." How do i really detect whether user has used any rich editing feautres in a text document of CRichEditCtrlView

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

      First of all I don't know those classes. But I think you need to update a m_bRichEditFeatureUsed flag. Set it to 1 when such feature is used; Set it to 0 after you save.

      1 Reply Last reply
      0
      • S Surender

        I am little new to GUI programming and especially CRichEditCtrl class. How can i implement the below using CRichEditCtrlView: For example in Wordpad if i open a new text document and uses some rich editing feautres then while saving the file it asks me "saving the file in text format looses formatting features." How do i really detect whether user has used any rich editing feautres in a text document of CRichEditCtrlView

        A Offline
        A Offline
        Alexandru Savescu
        wrote on last edited by
        #3

        Use the m_bRTF boolean of the CRichEditDoc class. You can set it to TRUE or FALSE depending whether you want to save as RTF or plain text respectively. Best regards, Alexandru Savescu

        M 1 Reply Last reply
        0
        • A Alexandru Savescu

          Use the m_bRTF boolean of the CRichEditDoc class. You can set it to TRUE or FALSE depending whether you want to save as RTF or plain text respectively. Best regards, Alexandru Savescu

          M Offline
          M Offline
          Marc Richarme
          wrote on last edited by
          #4

          I think what he's asking about is weather the user has actually used any RTF in the document, not how to choose which format to save in. Unfortunately I can't think of any simple ansawer to that question :(

          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