News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

WM_PRINT does not work

Started by Farabi, June 16, 2009, 11:41:57 AM

Previous topic - Next topic

Farabi

Anyone know why WM_PRINT does not work on my app?
I used it like this


invoke SendMessage,hEdit,WM_PRINT,main_screen.DC, PRF_CLIENT or PRF_ERASEBKGND
; hEdit is RichEdit Handle

[attachment deleted by admin]
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

PBrennick

Your DC is set to be the screen and not the printer which means it 'may' be working just fine, how would you know otherwise? If you wish to send output to the printer you need to do so by setting the DC correctly. Not happening in that code sample.

Paul
The GeneSys Project is available from:
The Repository or My crappy website

Farabi

Quote from: PBrennick on June 17, 2009, 05:11:12 AM
Your DC is set to be the screen and not the printer which means it 'may' be working just fine, how would you know otherwise? If you wish to send output to the printer you need to do so by setting the DC correctly. Not happening in that code sample.

Paul


No Im not gonna use the printer, Im just want to print the RichEdit content to the main screen.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"