WM_PRINTCLIENT message
-
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.
peenu wrote: Has anybody used WM_PRINTCLIENT message? Yes, although I usually use
WM_PRINT
with thePRF_CLIENT
flag. Not all window types support theWM_PRINTCLIENT
message, orWM_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"
-
peenu wrote: Has anybody used WM_PRINTCLIENT message? Yes, although I usually use
WM_PRINT
with thePRF_CLIENT
flag. Not all window types support theWM_PRINTCLIENT
message, orWM_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"