Click here to Skip to main content
15,113,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am confused by reading many articles.
Can any one tell me how many message queues are there in dialog based application.
Are there separate message queues for each window or each thread has its own message queue.
:confused:
Posted

The messages management may lie in the OS core, I think... :)
But the message reactions of a window (dialog)
will be called in thread of its creating :)
   
This[^] explains it
   
I can explain you it in details

Look, there is Only one queue (by default) that follow a message map (which is already there in all Win32/MFC App.), for each controls/items or for process, message map got updated (also we can change the order of items mapped inside the message map or customized that message map accordingly). there is two API functions responsible for carrying messages either from dialog to queue or from queue to dialog, they are PostMessage() & GetMessage(). Also there are many macros are there, which are responsible for routing those message.

Also we can create customized message queues using MSMQ & System.Messaging.dll , for storing a huge volume of messages inside those queues for Local System data Storage.

/*If ((this.Info == useful) || (need any more info))
{
MessageBox ("plz let me know");
}
*/
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900