Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

A thread-safe timed message box

, 12 Feb 2001
The system Message Box that is closed atuomatically after some time
msgboxdemo_demo.zip
res
MsgBoxDemo.ico
MsgBoxDemo.dsp
MsgBoxDemo.dsw
MsgBoxDemo.exe
msgboxdemo_src.zip
// 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__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMsgBoxDemoApp

BEGIN_MESSAGE_MAP(CMsgBoxDemoApp, CWinApp)
	//{{AFX_MSG_MAP(CMsgBoxDemoApp)
	//}}AFX_MSG
	ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMsgBoxDemoApp Konstruktion

CMsgBoxDemoApp::CMsgBoxDemoApp()
{
}

/////////////////////////////////////////////////////////////////////////////
// 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
#else
	Enable3dControlsStatic();	// Diese Funktion bei statischen MFC-Anbindungen aufrufen
#endif

	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.

License

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

Share

About the Author

Markus Loibl

Germany Germany
No Biography provided

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