Solved

Order that windows messages are handled in MFC

Posted on 2003-11-28
6
369 Views
Last Modified: 2013-11-25
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
Comment
Question by:jatkin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 48

Expert Comment

by:AlexFM
ID: 9836580
Exactly in the same order they are received.
0
 
LVL 12

Expert Comment

by:migel
ID: 9836618
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
 
LVL 13

Assisted Solution

by:SteH
SteH earned 25 total points
ID: 9836629
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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 4

Author Comment

by:jatkin
ID: 9836695
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
 
LVL 32

Accepted Solution

by:
jhance earned 25 total points
ID: 9837105
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
 
LVL 4

Author Comment

by:jatkin
ID: 11105929
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
java ^ examples 8 72
Line meaning 9 94
Starting to use Git with Visual  Studio Online 1 65
Trouble installing msi file with msiexe.exe 2 44
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question