About Windows MessageBox

Source: Internet
Author: User

Today, the manager asked us a few questions about the windows message mechanism.

Create a new dialog box project and put two buttons on it.

The btn1 and btn2 events create two non-modal dialogs respectively, and then put a button above, the button event responds to MessageBox.

Now, click "button1" and "button2" of the primary dialog, and then click "button" in the modal box. A main dialog box, two modal dialogs, and two messageboxes are displayed. At this time, MessageBox blocks the message queue.

Click MessageBox in the mode dialog box, but the return result of MessageBox does not continue to go down, but waits.

I am not quite clear about it. If you are interested, try it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.