locked
what is difference between queued messages and non queued mesages RRS feed

  • Question

  • what is difference between queued messages and non queued mesages
    Wednesday, November 18, 2009 6:18 AM

Answers

  • Depends on who implement the concept of the queue. The concept is not defined in the C++ standard so there is no definite answer. If you want a definite answer, post to a forum where the implementation is implied.

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
    Visual C++ MVP
    • Proposed as answer by Geert van Horrik Tuesday, November 24, 2009 10:54 AM
    • Marked as answer by Nancy Shao Wednesday, November 25, 2009 1:56 AM
    Wednesday, November 18, 2009 7:56 PM
  • Hi Neeraj,

    Message queues is used to route mouse and keyboard input to the appropriate window.
    Nonqueued messages are sent immediately to the destination window procedure, bypassing the system message queue and thread message queue.

    Help you to understand queued messages and non queued message more detailed, please see this article:

    About Messages and Message Queues
    http://msdn.microsoft.com/en-us/library/ms644927(VS.85).aspx#nonqueued_messages

    Nonqueued Windows Messages
    http://www.cplusplus.com/forum/windows/10287/

    Best Regards,
    Nancy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Proposed as answer by Geert van Horrik Tuesday, November 24, 2009 10:54 AM
    • Marked as answer by Nancy Shao Wednesday, November 25, 2009 1:56 AM
    Friday, November 20, 2009 8:12 AM
  • Well for windows messages...

    Messages posted via PostMessage are queued, while those send via SendMessage are not queued.
    Microsoft MVP - Visual C++
    Blog: http://nibuthomas.com
    Posts are provided as is without warranties or guaranties.
    • Proposed as answer by Geert van Horrik Tuesday, November 24, 2009 10:54 AM
    • Marked as answer by Nancy Shao Wednesday, November 25, 2009 1:56 AM
    • Marked as answer by Nancy Shao Wednesday, November 25, 2009 1:58 AM
    Friday, November 20, 2009 8:52 AM

All replies

  • Depends on who implement the concept of the queue. The concept is not defined in the C++ standard so there is no definite answer. If you want a definite answer, post to a forum where the implementation is implied.

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
    Visual C++ MVP
    • Proposed as answer by Geert van Horrik Tuesday, November 24, 2009 10:54 AM
    • Marked as answer by Nancy Shao Wednesday, November 25, 2009 1:56 AM
    Wednesday, November 18, 2009 7:56 PM
  • Hi Neeraj,

    Message queues is used to route mouse and keyboard input to the appropriate window.
    Nonqueued messages are sent immediately to the destination window procedure, bypassing the system message queue and thread message queue.

    Help you to understand queued messages and non queued message more detailed, please see this article:

    About Messages and Message Queues
    http://msdn.microsoft.com/en-us/library/ms644927(VS.85).aspx#nonqueued_messages

    Nonqueued Windows Messages
    http://www.cplusplus.com/forum/windows/10287/

    Best Regards,
    Nancy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Proposed as answer by Geert van Horrik Tuesday, November 24, 2009 10:54 AM
    • Marked as answer by Nancy Shao Wednesday, November 25, 2009 1:56 AM
    Friday, November 20, 2009 8:12 AM
  • Well for windows messages...

    Messages posted via PostMessage are queued, while those send via SendMessage are not queued.
    Microsoft MVP - Visual C++
    Blog: http://nibuthomas.com
    Posts are provided as is without warranties or guaranties.
    • Proposed as answer by Geert van Horrik Tuesday, November 24, 2009 10:54 AM
    • Marked as answer by Nancy Shao Wednesday, November 25, 2009 1:56 AM
    • Marked as answer by Nancy Shao Wednesday, November 25, 2009 1:58 AM
    Friday, November 20, 2009 8:52 AM