Click here to Skip to main content
13,054,779 members (73,698 online)
Click here to Skip to main content


49 bookmarked
Posted 9 Nov 2000

A thread-safe timed message box

, 12 Feb 2001
The system Message Box that is closed atuomatically after some time
// MsgBoxDemo.cpp : Legt das Klassenverhalten f�r die Anwendung fest.

#include "stdafx.h"
#include "MsgBoxDemo.h"
#include "MsgBoxDemoDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;

// CMsgBoxDemoApp


// CMsgBoxDemoApp Konstruktion


// Das einzige CMsgBoxDemoApp-Objekt

CMsgBoxDemoApp theApp;

// CMsgBoxDemoApp Initialisierung

BOOL CMsgBoxDemoApp::InitInstance()
	// Standardinitialisierung

#ifdef _AFXDLL
	Enable3dControls();			// Diese Funktion bei Verwendung von MFC in gemeinsam genutzten DLLs aufrufen
	Enable3dControlsStatic();	// Diese Funktion bei statischen MFC-Anbindungen aufrufen

	CMsgBoxDemoDlg dlg;
	m_pMainWnd = &dlg;
	int nResponse = dlg.DoModal();
	if (nResponse == IDOK)
	else if (nResponse == IDCANCEL)

	// Da das Dialogfeld geschlossen wurde, FALSE zur�ckliefern, so dass wir die
	//  Anwendung verlassen, anstatt das Nachrichtensystem der Anwendung zu starten.
	return FALSE;

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Markus Loibl
Germany Germany
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170713.1 | Last Updated 13 Feb 2001
Article Copyright 2000 by Markus Loibl
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid