🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2220

Aborting Eventprocessing

#2220
From: Christian Barmala
Date: Thu, 21 Jan 1993 09:58
19 lines
1371 bytes
The processing of messages that cause the screen to be repainted may take
a long time. During that time other messages may arrive, that make the
current repainting of the screen worthless, because they change the screen
and need again a repaint. Such messages may be iconizing, closing or resizing
the window, typing in text by keyborad or drawing graphics by mouse, ...

Therefore it seems reasonable to abort processing of WM_PAINT as soon
as such messages arrive and to process these messages.

In C this seems to me easy. There is probably a function like
"look_for_event_but_don't_get_it()". If it returns such an event,
I close all device contexts, that I opened during WM_PAINT, I invalidate
the part of the window, that has not yet been repainted (in case of doubt
the whole window) and then I return premature from the function that
processes WM_PAINT. Am I right?

How can the same be acomplished in Visual Basic?

Regards, Christian Barmala
Technical Details
Message-ID: <1993Jan21.095835.2494@informix.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!gossip.pyramid.com!pyramid!infmx!infmuc!christb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!gossip.pyramid.com!pyramid!infmx!infmuc!christb
From: christb@infmuc (Christian Barmala)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Aborting Eventprocessing
Message-ID: <1993Jan21.095835.2494@informix.com>
Date: 21 Jan 93 09:58:35 GMT
Sender: news@informix.com (Usenet News)
Organization: Informix Software, Inc.
Lines: 19
X-Newsreader: Tin 1.1 PL3