Solved

Create a message Box with no buttons and then kill it later

Posted on 2003-10-24
1
204 Views
Last Modified: 2013-11-20
I want to create a messagebox, but without any buttons.
Then after a specified time I want to close or kill the messagebox.
0
Comment
Question by:Maritimer
1 Comment
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 25 total points
ID: 9616347
Create your own dialog with a static control to display your text.  In the OnInitDlg set a timer going.  In the OnTimer KillTimer to destroy timer and then OnCancel() to kill the dialog.
To prevent the user killing the dlg with the Enter/Esc keys you can override the OnOk and OnCancel as follows
CMessageDlg::OnOK() //OnCancel
{
}

In that case call the CDialog::OnCancel() in your timer.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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 …
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…
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

743 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

15 Experts available now in Live!

Get 1:1 Help Now