🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: CS_SAVEBITS problem

#2567
From: Barry King
Date: Sun, 21 Apr 1991 21:54
29 lines
1613 bytes
d89-pen@sm.luth.se (Per Ersson) writes:

> 
> 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 tha
> 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.
> 
I've successfully done this but I used WS_SAVEBITS for the frame and 
client styles in the WinCreateWindow procedure.  I also used 
CS_CLIPCHILDREN for the parent of the window.
 
Hope this helps.

Barry King             ersys!bking@nro.cs.athabascau.ca
Edmonton Remote Systems:  Serving Northern Alberta since 1982
Technical Details
Message-ID: <5cXR13w164w@ersys.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!atha!aunro!ersys!bking
References: <1552@tau.sm.luth.se>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!atha!aunro!ersys!bking
From: ersys!bking@nro.cs.athabascau.ca (Barry King)
Newsgroups: comp.os.os2.programmer
Subject: Re: CS_SAVEBITS problem
Keywords: graphics problem
Message-ID: <5cXR13w164w@ersys.uucp>
Date: 21 Apr 91 21:54:15 GMT
References: <1552@tau.sm.luth.se>
Organization: Edmonton Remote Systems, Edmonton, AB, Canada
Lines: 29