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. Text Editor Source Code

Text Editor Source Code

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorial
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.
  • K Offline
    K Offline
    kefa7
    wrote on last edited by
    #1

    Hello everyone. I am a very new member to this forum, and also very new to Windows programming. I am challenging myself to building my own text editor. However, I don’t know where to start. So, I am looking for a source code for a simple text editor with functions like “Open, Save, Save As, Copy, Cut, Paste, About.” I don’t think any text editor in the world lacks these very basic functions. On that basic structure I plan to build and develop. I’d appreciate every bit of help in this matter because I am a very new programmer and I am barely scratching the surface. I am not completely sure that I am even posting my request in the correct forum on this site, but I use Visual C++ 6.0 to do the little Windows Programming I know how to do. So, I figured I’d post my request here. I appreciate your kindness in advance :)

    M T A 3 Replies Last reply
    0
    • K kefa7

      Hello everyone. I am a very new member to this forum, and also very new to Windows programming. I am challenging myself to building my own text editor. However, I don’t know where to start. So, I am looking for a source code for a simple text editor with functions like “Open, Save, Save As, Copy, Cut, Paste, About.” I don’t think any text editor in the world lacks these very basic functions. On that basic structure I plan to build and develop. I’d appreciate every bit of help in this matter because I am a very new programmer and I am barely scratching the surface. I am not completely sure that I am even posting my request in the correct forum on this site, but I use Visual C++ 6.0 to do the little Windows Programming I know how to do. So, I figured I’d post my request here. I appreciate your kindness in advance :)

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

      depends how deep you want to make your own text editor; do you want to handle everything ( drawing the words, handle keyboard event, ... ) or simply have a simple text editor. for the former, I would consider learning a lot of C++/Win32/MFC programming before, it's a big task. if it's the later, have a look at CRichEditCtrl which IS a MFC text editor control ( with basic functionality ); you simply create a MDI ( or SDI ) with a CRichEditView ( or something like that ) as the view type ( from the new project wizard ). after that, you have to handle the save, load, ... fonts and color, and other stuff. There are a lot of exmaple on this site, search for them.


      Maximilien Lincourt Your Head A Splode - Strong Bad

      1 Reply Last reply
      0
      • K kefa7

        Hello everyone. I am a very new member to this forum, and also very new to Windows programming. I am challenging myself to building my own text editor. However, I don’t know where to start. So, I am looking for a source code for a simple text editor with functions like “Open, Save, Save As, Copy, Cut, Paste, About.” I don’t think any text editor in the world lacks these very basic functions. On that basic structure I plan to build and develop. I’d appreciate every bit of help in this matter because I am a very new programmer and I am barely scratching the surface. I am not completely sure that I am even posting my request in the correct forum on this site, but I use Visual C++ 6.0 to do the little Windows Programming I know how to do. So, I figured I’d post my request here. I appreciate your kindness in advance :)

        T Offline
        T Offline
        Timothy Grabrian
        wrote on last edited by
        #3

        I would really suggest you read this entire tutorial: http://winprog.org/tutorial/ But what you really need are these two pages: http://winprog.org/tutorial/app\_two.html and http://winprog.org/tutorial/app\_three.html wWw.KruncherInc.cOm

        1 Reply Last reply
        0
        • K kefa7

          Hello everyone. I am a very new member to this forum, and also very new to Windows programming. I am challenging myself to building my own text editor. However, I don’t know where to start. So, I am looking for a source code for a simple text editor with functions like “Open, Save, Save As, Copy, Cut, Paste, About.” I don’t think any text editor in the world lacks these very basic functions. On that basic structure I plan to build and develop. I’d appreciate every bit of help in this matter because I am a very new programmer and I am barely scratching the surface. I am not completely sure that I am even posting my request in the correct forum on this site, but I use Visual C++ 6.0 to do the little Windows Programming I know how to do. So, I figured I’d post my request here. I appreciate your kindness in advance :)

          A Offline
          A Offline
          alex barylski
          wrote on last edited by
          #4

          I would suggest looking at the articles at http://www.codeproject.com/editctrl/[^] Start by hacking the windows edit control and getting a feel for how Windows implements an edit control. Don't concern yourself with Open, Save, Save As commands as of yet...those are easy to add once you have an basic control built. Maybe not so much Copy, Paste, but i'd first get the caret moving about and inserting, deleteing characters down and bug free first. Cheers :) It's frustrating being a genius and living the life of a moron!!!

          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