🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #2563

CS_SAVEBITS problem

#2563
From: Per Ersson
Date: Fri, 19 Apr 1991 14:15
24 lines
1455 bytes
Hi!

I can't get the CS_SAVEBITS option to work properly. Could somebody
please give me a hint of what to do?

I have created a standard frame window with my own window procedure to the
client window.
In the WM_CREATE part of that procedure I register a new
window class with the CS_SAVEBITS option. I also create a small window of that
class with my client window as parent and owner.
This window is moved in the client window (trigged by a timer) with the
procedure WinSetWindowPos ( ..., SWP_MOVE).
All this works fine _BUT_ I also recieves WM_PAINT messages to my client
window procedure every time my small window is moved!
Why? And how can I avoid this.
When I read my PM manual it says that CS_SAVEBITS (which implikates
WS_SAVEBITS) should prevent this.

Regards.

| Per Ersson              ! Hagelv. 1 rum 78   | E-adr: d89-pen@sm.luth.se    |
| University of Luleaa    ! S - 951 48 Luleaa  | Phone: + 46 (0)920 49184     |
| Sweden                  ! Sweden             |                              |
Technical Details
Message-ID: <1552@tau.sm.luth.se>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!lunic!my!luth!d89-pen

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!lunic!my!luth!d89-pen
From: d89-pen@sm.luth.se (Per Ersson)
Newsgroups: comp.os.os2.programmer
Subject: CS_SAVEBITS problem
Keywords: graphics problem
Message-ID: <1552@tau.sm.luth.se>
Date: 19 Apr 91 14:15:06 GMT
Distribution: comp
Organization: University of Lulea, Sweden
Lines: 24