mfc >> When a window minimize, what messages will be posted.

by Marco » Thu, 27 Nov 2003 21:27:48 GMT

When a window minimize, what messages will be posted?





mfc >> When a window minimize, what messages will be posted.

by Roy Fine » Thu, 27 Nov 2003 23:48:29 GMT


Marco,

That's an interesting question, especially since you are explicitly looking
for messages that are "posted", i.e. messages that end up in the message
queue and therefore are processed by the GetMessage/Dispatch message
sequence.

As a minimum, assuming that you placed the mouse cursor over the Minimze
icon in the title bar, you would see the following in this order :

1. WM_NCMOUSEMOVE
2. WM_NCLBUTTONDOWN

Additionally, one may expect to see the following message in the message
queue:
WM_SYSCOMMAND (with wParam of SC_MINIMIZE)
but it wont appear in the GetMessage/DispatchMessage sequence because it is
never placed in the queue.

The WndProc for the window will in fact receive the WM_SYSCOMMAND with
wParam of SC_MINIMIZE, but the message is not routed normally using the
thread message queue and the message loop, rather is sent directly by
DefWindowProc as it handles the WM_NCLBUTTONDOWN message.

regards
roy fine








mfc >> When a window minimize, what messages will be posted.

by Marco » Fri, 28 Nov 2003 17:34:08 GMT

GOOD
"Roy Fine" < XXXX@XXXXX.COM >

looking
is






Similar Threads

1. Catching Minimize All windows (Win+D) message - Borland C++ Builder VCL Components

2. Post Windows messages?

Hello,

do anythink know, how I can post native Windows-Messages via .NET, how it
were possible about the Windows-API with the function PostMessage(Hwnd,
Message, WParam, LParam)? Or is it required to import this Windows-API
function about DllImport attribute?

Thanks in advance,
Hubert


3. send/post a message to a window - CSharp/C#

4. Post Window Message

Hi,

I would like to know is there any PostMessage function availabe in VC#. Any
reference? Thanks.

Regards,
Cutris


5. BHO + How to post message to BHO like any Window

6. posting messages to all app windows

Hi,

How can i post a message to all windows that were created by my application?

I have several custom controls that require updating when an event occurs,
so posting a mesage to all windows would be the quickest way to notify them.

Joe
#


7. Which process posts this window message ?

8. Minimize message for controls

It is easy to respond to minimize messages in a dialog and from there,
send it to child controls if necessary. I wonder if it is possible for
a child control to be aware of a minimize message directly, that is,
WITHOUT sending it explicitly upon interception in its parent dialog.

Thanks people.