|
// EllipticButtonTest.cpp : Legt das Klassenverhalten f�r die Anwendung fest.
//
#include "stdafx.h"
#include "EllipticButtonTest.h"
#include "EllipticButtonTestDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CEllipticButtonTestApp
BEGIN_MESSAGE_MAP(CEllipticButtonTestApp, CWinApp)
//{{AFX_MSG_MAP(CEllipticButtonTestApp)
// HINWEIS - Hier werden Mapping-Makros vom Klassen-Assistenten eingef�gt und entfernt.
// Innerhalb dieser generierten Quelltextabschnitte NICHTS VER�NDERN!
//}}AFX_MSG
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CEllipticButtonTestApp Konstruktion
CEllipticButtonTestApp::CEllipticButtonTestApp()
{
// ZU ERLEDIGEN: Hier Code zur Konstruktion einf�gen
// Alle wichtigen Initialisierungen in InitInstance platzieren
}
/////////////////////////////////////////////////////////////////////////////
// Das einzige CEllipticButtonTestApp-Objekt
CEllipticButtonTestApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CEllipticButtonTestApp Initialisierung
BOOL CEllipticButtonTestApp::InitInstance()
{
AfxEnableControlContainer();
// Standardinitialisierung
// Wenn Sie diese Funktionen nicht nutzen und die Gr��e Ihrer fertigen
// ausf�hrbaren Datei reduzieren wollen, sollten Sie die nachfolgenden
// spezifischen Initialisierungsroutinen, die Sie nicht ben�tigen, entfernen.
#ifdef _AFXDLL
Enable3dControls(); // Diese Funktion bei Verwendung von MFC in gemeinsam genutzten DLLs aufrufen
#else
Enable3dControlsStatic(); // Diese Funktion bei statischen MFC-Anbindungen aufrufen
#endif
CEllipticButtonTestDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// ZU ERLEDIGEN: F�gen Sie hier Code ein, um ein Schlie�en des
// Dialogfelds �ber OK zu steuern
}
else if (nResponse == IDCANCEL)
{
// ZU ERLEDIGEN: F�gen Sie hier Code ein, um ein Schlie�en des
// Dialogfelds �ber "Abbrechen" zu steuern
}
// 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.
Dag has been programming since 1988 in the business and technical area.
His programming knowledges includes C/C++, MFC, Delpi and a lillte JAVA.
Dag was born in Germany but he likes it to traveling all over the world. In his spare time he likes running, cycle biking, mountaineering, cross country skiing and other actions in the nature.