• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 375
  • Last Modified:

Order that windows messages are handled in MFC

Hi all,

Does anyone have a list of the order that Windows Messages are called within MFC?  (Currently VC6 but looking into .NET)

Thanks,

James
0
James Atkin
Asked:
James Atkin
2 Solutions
 
AlexFMCommented:
Exactly in the same order they are received.
0
 
migelCommented:
hmm
What order :-)....
Do you need order of messages that will come to the window?
Or Do You need messaging dispatcher mechanism (that is frame-doc-view path)?
0
 
SteHCommented:
I think WM_PAINT message are a bit different. They are handled in the order received by the window/control. But they are not send to the window/control when there are other messages in the queue of that window. So for these there might be a difference in sending/posting and receiving. Not sure that there are others which fall into this class.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
James AtkinSenior Principle Software EngineerAuthor Commented:
I'm looking for as much info as possible...

The main info I guess is "order of messages that will come to the window"
0
 
jhanceCommented:
The order and type of messages that come to a window depends on what happens in the system, what input is given by the user, what events are setup by the application, etc.

If you want to know for sure that messages and order they arrive in ONE circumstance (this is not a deterministic process!!) you can write some code to LOG the messages.

If you want a ready-made tool, try the Microsoft SPY++ tool from the SDK.  It can monitor and log all messages to a window.
0
 
James AtkinSenior Principle Software EngineerAuthor Commented:
This has been open for a while and it appears that there is no answer to this!!  Too many variables!
I'll split the points anyway for all your input...
James
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now