Solved

MessageBox with Autoclose ?

Posted on 1998-02-21
1
1,405 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 20 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

695 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