?
Solved

MessageBox with Autoclose ?

Posted on 1998-02-21
1
Medium Priority
?
1,407 Views
Last Modified: 2013-11-20
VC++ 4.0, WIN95:

Using AfxMessageBox for User-Info.
How can I close the Box after a certain time period without user confirmation and without suspending the application while the Box is displayed ?

Example:
1. MESSAGEBOX: "...under initialize..."
2. device is initializing while user reads info
3. initialization finished (about 3 sec.), box dissapears
4. user can start operating

Hope 20 pts. are enough...no more available =:(

Best regards

-Stavi-
0
Comment
Question by:mitrakis
[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
1 Comment
 
LVL 32

Accepted Solution

by:
jhance earned 80 total points
ID: 1316463
You can't do it with an AfxMessageBox as these are modal.  Modal dialog boxes block the parent window while they are displayed.  In order to do what you want, you need to create a non-modal dialog box.  Create and then display it.  After you are finished having it display, send it a WM_CLOSE message or call it's EndDialog() member function.
0

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

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

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 …
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month7 days, 19 hours left to enroll

765 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