🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer.misc
Article #230

How to disable/enable screen updates?

#230
From: Keith R. Bennett
Date: Thu, 31 Mar 1994 21:13
27 lines
2077 bytes
I need to find a way to disable and re-enable screen updates in order
to save processing time.  For example, I am using GPI calls to clear
a small area of the screen, draw a string of text, and display a
bitmap.   I'd like to disable screen updates before all three operations,
and enable them after all three operations.

This is possible using WinEnableWindowUpdate(), but it is necessary
to call WinShowWindow() after re-enabling updates.  The problem with
WinShowWindow() is that it causes the entire window to be repainted,
not just the invalid region.

I tried trapping the WM_SHOW message, but couldn't get it to work.

Is there a way to do what I need to do?  Because of our design,
the window is 640 x 480 pixels.  We have a kind of homemade graphics
client/server system, so it would require an overhaul to make these
small areas individual windows.

Thanks for any help.  If possible, please mail responses to me at:
kbennett@access.digex.net.

- Keith
-- 
--------------------------------------------------------------------------
Keith Bennett                            Bennett Business Solutions, Inc.
C++/C Software Development               1605 Ingram Terrace
kbennett@access.digex.net                Silver Spring, MD USA 20906-5932
Technical Details
Message-ID: <2nfedq$bv@access3.digex.net>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!yale.edu!noc.near.net!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!news.intercon.com!news1.digex.net!access.digex.net!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cd94,85ce6d987399d966,start
X-Google-Attributes: gid10cd94,public
X-Google-Thread: 11307a,85ce6d987399d966,start
X-Google-Attributes: gid11307a,public
X-Google-ArrivalTime: 1994-03-31 13:13:30 PST
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!yale.edu!noc.near.net!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!news.intercon.com!news1.digex.net!access.digex.net!not-for-mail
From: kbennett@access.digex.net (Keith R. Bennett)
Newsgroups: comp.os.os2.programmer.misc,bit.listserv.os2-l
Subject: How to disable/enable screen updates?
Date: 31 Mar 1994 16:13:30 -0500
Organization: Express Access Online Communications USA: 800-969-9090
Lines: 27
Message-ID: <2nfedq$bv@access3.digex.net>
NNTP-Posting-Host: access3.digex.net