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. WM_PRINTCLIENT message

WM_PRINTCLIENT message

Scheduled Pinned Locked Moved C / C++ / MFC
question
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.
  • P Offline
    P Offline
    peenu
    wrote on last edited by
    #1

    Hi, Has anybody used WM_PRINTCLIENT message? I m using the following SendMessage call..... SendMessage(hWnd, WM_PRINTCLIENT, (WPARAM) hDCMem, PRF_CLIENT | PRF_ERASEBKGND | PRF_CHILDREN ); but this returns a black window. Any clues? Thanks, peenu.

    R 1 Reply Last reply
    0
    • P peenu

      Hi, Has anybody used WM_PRINTCLIENT message? I m using the following SendMessage call..... SendMessage(hWnd, WM_PRINTCLIENT, (WPARAM) hDCMem, PRF_CLIENT | PRF_ERASEBKGND | PRF_CHILDREN ); but this returns a black window. Any clues? Thanks, peenu.

      R Offline
      R Offline
      Ryan Binns
      wrote on last edited by
      #2

      peenu wrote: Has anybody used WM_PRINTCLIENT message? Yes, although I usually use WM_PRINT with the PRF_CLIENT flag. Not all window types support the WM_PRINTCLIENT message, or WM_PRINT for that matter. I assume you're setting your memory DC up correctly - creating and selecting a bitmap for it, etc. Your syntax is correct, so if your DC is setup correctly and it still doesn't work, then the window you're sending the message to probably doesn't handle the message, and there's not much you can do about it.

      Ryan

      "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

      P 1 Reply Last reply
      0
      • R Ryan Binns

        peenu wrote: Has anybody used WM_PRINTCLIENT message? Yes, although I usually use WM_PRINT with the PRF_CLIENT flag. Not all window types support the WM_PRINTCLIENT message, or WM_PRINT for that matter. I assume you're setting your memory DC up correctly - creating and selecting a bitmap for it, etc. Your syntax is correct, so if your DC is setup correctly and it still doesn't work, then the window you're sending the message to probably doesn't handle the message, and there's not much you can do about it.

        Ryan

        "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

        P Offline
        P Offline
        peenu
        wrote on last edited by
        #3

        I used WM_PRINT. This gives me the bitmap of all controls in the form, but the form area appears black?

        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