Solved

MessageBox with Autoclose ?

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
sameEnds challenge 3 107
VBA "SendKeys" Syntax for Multiple Keystrokes 7 98
sum67 challenge 35 89
canBalance challenge 34 65
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now