Solved

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

Posted on 2003-10-24
1
221 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

770 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