🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.programmer.misc
1 messages
1 total messages Started by Keith R. Bennett Thu, 31 Mar 1994 21:13
How to disable/enable screen updates?
#230
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads