TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Ansgar Konermann
from: Erik Huelsmann
date: 1996-02-13 14:13:54
subject: What are `Object Windows` ?

Hello Ansgar!

Replying to a message of Ansgar Konermann to All:

 AK> Hi All!

 AK> I recently started creating programs for the OS/2 Presentation Manager
 AK> using IBM's Visual Age C++. The DOCs mention "object
windows" to be a
 AK> special class of object, which can be used by applications.

 AK> What are these object windows good for?

Object windows are windows that only receive the WM_CREATE and WM_DESTROY
system messages. Any further messages received by the window have to be
sent by you.

PM applications should respond to any messages sent to them within 1/10-th
of a second. This is because the app could lock the system queue, there
where keyboard and mouse messages are queued before the app gets the
messages.

But object windows don't get keyboard/mouse or any other system messages,
thus they don't block the system queue; having said that, you can conclude
that the 1/10 rule does not apply to object windows. That is why object
windows are used in secondary threads, to perform operations that require
longer than 1/10-th of a second to complete.
By the way there is no use in having an object window in thread 1, as it
will block the thread for more than 1/10th sec, it still violates the
1/10th-rule (the messages are not removed from the input queues).

Bye, Erik!
[TeamOS/2 NL]
preferred personal reactions through e-mail
[internet: ErikH{at}hcc-gron.idn.nl]

--- FleetStreet 1.14 NR
* Origin: ORIGINal messages, I like them (2:500/19.1929)
SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809
@PATH: 500/19 9 28/777 2/777 396/1 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.