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. printing a sring to edit view/doccument

printing a sring to edit view/doccument

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

    hello, this is a kind of simple question. I have MFC/C++ a html editor that i am in the process of making. I want to be able to print a string into the doccument such as a html tag and map it so that when i press a certain button it will display "/font"in the doccument for example. could be in the tool bar as well. if i can figure this out i will add a button for all the common html tags. i would greatly appreciate any help, thank you

    void CtoolDlg::OnButton1()
    {
    //TODO: Add your control notification handler code here
    }

    D 1 Reply Last reply
    0
    • N no_life

      hello, this is a kind of simple question. I have MFC/C++ a html editor that i am in the process of making. I want to be able to print a string into the doccument such as a html tag and map it so that when i press a certain button it will display "/font"in the doccument for example. could be in the tool bar as well. if i can figure this out i will add a button for all the common html tags. i would greatly appreciate any help, thank you

      void CtoolDlg::OnButton1()
      {
      //TODO: Add your control notification handler code here
      }

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      In your CDocument-derived class, you'll need an object (e.g., CString) to hold the (HTML) text. As you click each button, you'll update this object accordingly. After each update, you'll need to call UpdateAllViews(...) so that the view can render the text.


      Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

      N 1 Reply Last reply
      0
      • D David Crow

        In your CDocument-derived class, you'll need an object (e.g., CString) to hold the (HTML) text. As you click each button, you'll update this object accordingly. After each update, you'll need to call UpdateAllViews(...) so that the view can render the text.


        Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

        N Offline
        N Offline
        no_life
        wrote on last edited by
        #3

        DavidCrow wrote: In your CDocument-derived class, you'll need an object (e.g., CString) to hold the (HTML) text. As you click each button, you'll update this object accordingly. After each update, you'll need to call UpdateAllViews(...) so that the view can render the text. hello, thx for the reply i will try and use this when i get the chance, it sounds a bit cloudy to me but i will have a go at it

        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