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. Print dialog with prntscreen

Print dialog with prntscreen

Scheduled Pinned Locked Moved C / C++ / MFC
comgraphicstutorialquestion
2 Posts 1 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
    kevincwong
    wrote on last edited by
    #1

    Hi, I need to print the SDI dialog and found the following code http://www.codeproject.com/printing/prntscreen.asp The code worked fine but the print out image is a kind of small. Does anyone know how to change the setting to print the bitmap image a bit larger if possible? Thanks, Kevin

    K 1 Reply Last reply
    0
    • K kevincwong

      Hi, I need to print the SDI dialog and found the following code http://www.codeproject.com/printing/prntscreen.asp The code worked fine but the print out image is a kind of small. Does anyone know how to change the setting to print the bitmap image a bit larger if possible? Thanks, Kevin

      K Offline
      K Offline
      kevincwong
      wrote on last edited by
      #2

      I found the answer. StretchDIBits( hDC, // hDC 10, // DestX 10, // DestY (int) sizePrn.cx, // nDestWidth (int) sizePrn.cy, // nDestHeight 0, // SrcX 0, // SrcY sizeClient.cx, // wSrcWidth sizeClient.cy, // wSrcHeight lpDIBBits, // lpBits &bmInfo, // lpBitsInfo DIB_RGB_COLORS, // wUsage SRCCOPY); // dwROP Change sizePrn.cx, sizePrn.cy can resize the print out. Kevin

      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