home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Troubleshooting Netware Systems
/
CSTRIAL0196.BIN
/
attach
/
msj
/
v10n10
/
cppq1195.exe
/
APP.CPP
next >
Wrap
C/C++ Source or Header
|
1995-10-01
|
1KB
|
51 lines
////////////////////////////////////////////////////////////////
// TRACEWIN Copyright 1995 Microsoft Systems Journal.
// If this program works, it was written by Paul DiLascia.
// If not, I don't know who wrote it.
//
// Application object for TRACEWIN applet.
//
#include "stdafx.h"
#include "app.h"
#include "mainfrm.h"
CApp NEAR theApp;
BEGIN_MESSAGE_MAP(CApp, CWinApp)
//{{AFX_MSG_MAP(CApp)
ON_COMMAND(ID_APP_ABOUT, OnAppAbout)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
CApp::CApp()
{
}
BOOL CApp::InitInstance()
{
// Save settings in registry, not INI file
SetRegistryKey("MSJ");
// Create main frame window (don't use doc/view stuff)
//
CMainFrame* pMainFrame = new CMainFrame;
if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
return FALSE;
pMainFrame->ShowWindow(m_nCmdShow);
pMainFrame->UpdateWindow();
m_pMainWnd = pMainFrame;
return TRUE;
}
class CAboutDlg : public CDialog {
public:
CAboutDlg() : CDialog(IDD_ABOUTBOX) { }
};
void CApp::OnAppAbout()
{
CAboutDlg aboutDlg;
aboutDlg.DoModal();
}