Whats the difference between "message only" window and a normal one ?

Giganews Newsgroups
Subject: Whats the difference between "message only" window and a normal one ?
Posted by:  R.Wieser (addre…@not.available)
Date: Sat, 2 Feb 2019

Hello all,

I've got the need for an "message only" window  so I can attach a systray
icon and dialogs to it.  For that I brushed up on the information I already
had.

But while doing some testing I realized that I have /absolutily no idea/
what the *real* difference is between a message-only and a normal window.

And as far as I can tell the only difference between the former and the
latter seems to be the usage (or not) of HWND_MESSAGE (-3) or HWND_DESKTOP
(zero) as the parent window.

(both can be created exactly the same : register a class, create window -
both with exactly the same (mostly zero) parameters, but for the mentioned
parent window).

The only difference I ran across is that a "message only" window doesn't
enumerate as a child window.  But is that all ?

tl;dr:
What does/doesn't a "message only" window do/offer in comparision to a
normal one (IOW: its pros as well as its cons if possible) ?

Regards,
Rudy Wieser

Replies