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. CRichEdit without OLE capabilities?

CRichEdit without OLE capabilities?

Scheduled Pinned Locked Moved C / C++ / MFC
comquestion
2 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.
  • J Offline
    J Offline
    JCpp
    wrote on last edited by
    #1

    First of all excuse my english level, I'm just a begginer... I must develop a program that can edit files and send them using serial ports. In order to edit those files I've tought about using CRichEditViews in an MDI App. Doing this I've found that the RichEdits need the OLE capabilities enabled... Could I disable them? or there is another way (or control) that let me edit files using "Syntax highlighting" without being able to receive an Excel spreadsheet or another OLE object? Thank you in advance.

    B 1 Reply Last reply
    0
    • J JCpp

      First of all excuse my english level, I'm just a begginer... I must develop a program that can edit files and send them using serial ports. In order to edit those files I've tought about using CRichEditViews in an MDI App. Doing this I've found that the RichEdits need the OLE capabilities enabled... Could I disable them? or there is another way (or control) that let me edit files using "Syntax highlighting" without being able to receive an Excel spreadsheet or another OLE object? Thank you in advance.

      B Offline
      B Offline
      Ben Key
      wrote on last edited by
      #2

      Why not create a SDI application in which your view class is derived from CFormView. Then you can insert a rich edit control on your form. If you choose this method there are a couple of things that you will need to consider: 1. Add the line AfxInitRichEdit(); to the InitInstance function of your app class. 2. Remove the line ResizeParentToFit(); from the OnInitialUpdate function of your view class. 3. In the OnInitialUpdate and OnSize functions of your view class to resize your rich edit window to fit your view class.

      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