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 values in editbox using VC++

Printing values in editbox using VC++

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

    I have dialog based application where I have a testbox / list box and I want to print the values entered in these controls. Pls let me know how to print the data as formated output.

    SNI

    L 1 Reply Last reply
    0
    • S SNI

      I have dialog based application where I have a testbox / list box and I want to print the values entered in these controls. Pls let me know how to print the data as formated output.

      SNI

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

      The Printing Functions in Win32 are described here[^]. You have to set out your formatting in the same way as you would draw to the screen by using XY coordinates.

      MVP 2010 - are they mad?

      S 1 Reply Last reply
      0
      • L Lost User

        The Printing Functions in Win32 are described here[^]. You have to set out your formatting in the same way as you would draw to the screen by using XY coordinates.

        MVP 2010 - are they mad?

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

        thanks for ur reply. I would like to know whether if I have a label / edit box on my dialog box how can I print the value. do I need to take HDC of my dialog and then print.

        SNI

        L 1 Reply Last reply
        0
        • S SNI

          thanks for ur reply. I would like to know whether if I have a label / edit box on my dialog box how can I print the value. do I need to take HDC of my dialog and then print.

          SNI

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

          SNI wrote:

          do I need to take HDC of my dialog and then print.

          I think you need to read the documentation in the link I gave you earlier. You will need to create a Printer device context and then display your data on that. It is not quite as simple as saying 'print' and expecting the dialog to magically appear on the printer.

          MVP 2010 - are they mad?

          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