1. Re: bitBlt and screen rebuild
- Posted by Jasper_Holshuijsen at dsw.nl Oct 29, 2001
- 357 views
Hi Thomas and other readers, What do you mean by a Pixmap? I've tried to find a solution by looking into the documentation of WinLib. The only thing I could think of is to save the whole window as a bitmap and then load that bitmap when needed. This is an UGLY solution. Does anyone have a piece of code of a better example? Bye, Jasper. "Thomas Parslow (PatRat)" To: EUforum <EUforum at topica.com> <patrat@rat-sof cc: tware.com> Subject: Re: bitBlt and screen rebuild 16-10-2001 13:08 Please respond to EUforum > Hi everyone, > I use bitBlt to place a bitmap over a bitmap on the screen (in a window). > This works fine except for one thing. When I minimize the window and then > maximize it, all the "new" bitmaps are gone. This makes sense because the > bitmaps concerned are placed on the screen when a button is pushed. (Not in > a procedure like On_open_window or something simular.) Still, it's > annoying and I'm sure other people have encountered the same problem. Is > there a general solution for this problem? > Bye, > Jasper. You need to place all drawing code in the onPaint event. The way I do it is that I blt everything to a Pixmap then just blt that Pixmap on each onPaint event. Thomas Parslow (PatRat) ICQ #:26359483 Rat Software http://www.rat-software.com/ Please leave quoted text in place when replying