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. dcPrint????

dcPrint????

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
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
    JKohm
    wrote on last edited by
    #1

    I would like to understand how you can print the string from an edit box using dcPrint? Example: dcPrint.TextOut(50,150,Editbox string here); anyhelp greatly appreciated ThankYou in advance. Still no advice on how to achive this, does anyone have any sugestions that I might try?:confused::~ :sigh:

    D 1 Reply Last reply
    0
    • J JKohm

      I would like to understand how you can print the string from an edit box using dcPrint? Example: dcPrint.TextOut(50,150,Editbox string here); anyhelp greatly appreciated ThankYou in advance. Still no advice on how to achive this, does anyone have any sugestions that I might try?:confused::~ :sigh:

      D Offline
      D Offline
      dan o
      wrote on last edited by
      #2

      hi, ON_COMMAND(ID_FILE_PRINT, OnFilePrint) printing goes like this void CMyDialog::OnFilePrint() { CString strValue; int iRet; CPrintInfo Info; //set your info flags PRINTDLG pdsetup; HDC hdc; //get your hdc from pdsetup CDC dc; //dcPrint??? //Attach hdc with dc //set drawing rect //call OnPreparePrinting(&Info); //call OnBeginPrinting(&dc, &Info); DOCINFO docInfo; // make your docinfo if needed //iRet = dc.StartDoc(&docInfo); //iRet = dc.StartPage(); //OnPrepareDC(&dc, &Info); myEditBox.GetWindowText(strValue); dc.TextOut( 200, 200, strValue); //place own coordinates //dc.EndPage(); //dc.EndDoc(); //OnEndPrinting(&dc, &Info); //dc.Detach(); hope it helps dan

      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