🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2361

window dump in windows

#2361
From: John C. Lusth
Date: Wed, 27 Jan 1993 22:07
25 lines
1083 bytes
Hey all!

Can someone tell me what I'm doing wrong here? I'm trying to print the
image/bitmap of my main window.

Here is my (undoubtably stupid) method...

    /* mainDC is obtained with GetDC()    */
    /* printDC is obtained via PrintDlg() */

    /* error checking deleted for clarity */

    Escape(printDC, STARTDOC, 6, "My App", NULL);
    BitBlt(printDC, 0, 0, 1000, 1000, mainDC, 0, 0, SRCCOPY);
    Escape(printDC, NEWFRAME, 0, NULL, NULL);
    Escape(printDC, ENDDOC, 0, NULL, NULL);

When my code executes, all I get is a page ejected from the printer (which
is a Canon BJ10E). What am I leaving out in my quick and dirty method?

Thanks,

john
-- 
John C. Lusth, Becton Dickinson Research Center, RTP, NC, USA  jcl@bdrc.bd.com
Technical Details
Message-ID: <2272@bdrc.bdrc.bd.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!gatech!concert!bdrc!jcl

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!gatech!concert!bdrc!jcl
From: jcl@bdrc.bd.com (John C. Lusth)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: window dump in windows
Message-ID: <2272@bdrc.bdrc.bd.com>
Date: 27 Jan 93 22:07:21 GMT
Sender: news@bdrc.bdrc.bd.com
Lines: 25
Nntp-Posting-Host: otis.bdrc.bd.com