Article View: comp.os.os2.programmer
Article #2252Window contents
From: James Lawrence Weinkam
Date: Fri, 02 Oct 1992 21:24
Date: Fri, 02 Oct 1992 21:24
14 lines
1130 bytes
1130 bytes
I am writing a graphics program that takes a long time to generate the image. I was wondering what the best way of doing redraws is. The only way I can think of that would provide good performance is to create a memory context of the window as well as a screen context and draw to both. In this way, when I get the WM_PAINT message I just BitBlt from the memory context to the screen context. Is there a way of achiving the same without having to open two HPS, and drawing to both? (like an option when opening the window to tell the OS to maintain both the screen and memory context) Thanks for your help James
Technical Details
Message-ID:
<weinkam.718061080@sfu.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!elroy.jpl.nasa.gov!sdd.hp.com!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!uw-beaver!cs.ubc.ca!newsserver.sfu.ca!sfu.ca!weinkamShow Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!elroy.jpl.nasa.gov!sdd.hp.com!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!uw-beaver!cs.ubc.ca!newsserver.sfu.ca!sfu.ca!weinkam From: weinkam@fraser.sfu.ca (James Lawrence Weinkam) Subject: Window contents Message-ID: <weinkam.718061080@sfu.ca> Sender: news@sfu.ca Organization: Simon Fraser University, Burnaby, B.C., Canada Date: Fri, 2 Oct 1992 21:24:40 GMT Lines: 14