-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
paolo
committed
Jul 6, 2001
1 parent
98ae1fc
commit 6e02d50
Showing
19 changed files
with
1,328 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Debug | ||
Release | ||
*.clw | ||
*.aps | ||
*.ncb | ||
*.opt | ||
*.plg | ||
*.scc | ||
*.WW | ||
*.positions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
// Demo.cpp : Defines the class behaviors for the application. | ||
// | ||
|
||
#include "stdafx.h" | ||
#include "Demo.h" | ||
|
||
#include "MainFrm.h" | ||
#include "DemoDoc.h" | ||
#include "DemoView.h" | ||
|
||
#ifdef _DEBUG | ||
#define new DEBUG_NEW | ||
#undef THIS_FILE | ||
static char THIS_FILE[] = __FILE__; | ||
#endif | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// CDemoApp | ||
|
||
BEGIN_MESSAGE_MAP(CDemoApp, CWinApp) | ||
//{{AFX_MSG_MAP(CDemoApp) | ||
ON_COMMAND(ID_APP_ABOUT, OnAppAbout) | ||
//}}AFX_MSG_MAP | ||
// Standard file based document commands | ||
ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew) | ||
ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen) | ||
END_MESSAGE_MAP() | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// CDemoApp construction | ||
|
||
CDemoApp::CDemoApp() | ||
{ | ||
} | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// The one and only CDemoApp object | ||
|
||
CDemoApp theApp; | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// CDemoApp initialization | ||
|
||
BOOL CDemoApp::InitInstance() | ||
{ | ||
// Standard initialization | ||
|
||
// Change the registry key under which our settings are stored. | ||
SetRegistryKey(_T("Local AppWizard-Generated Applications")); | ||
|
||
LoadStdProfileSettings(); // Load standard INI file options (including MRU) | ||
|
||
// Register document templates | ||
|
||
CSingleDocTemplate* pDocTemplate; | ||
pDocTemplate = new CSingleDocTemplate( | ||
IDR_MAINFRAME, | ||
RUNTIME_CLASS(CDemoDoc), | ||
RUNTIME_CLASS(CMainFrame), // main SDI frame window | ||
RUNTIME_CLASS(CDemoView)); | ||
AddDocTemplate(pDocTemplate); | ||
|
||
// Parse command line for standard shell commands, DDE, file open | ||
CCommandLineInfo cmdInfo; | ||
ParseCommandLine(cmdInfo); | ||
|
||
// Dispatch commands specified on the command line | ||
if (!ProcessShellCommand(cmdInfo)) | ||
return FALSE; | ||
m_pMainWnd->ShowWindow(SW_SHOW); | ||
m_pMainWnd->UpdateWindow(); | ||
|
||
return TRUE; | ||
} | ||
|
||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// CAboutDlg dialog used for App About | ||
|
||
class CAboutDlg : public CDialog | ||
{ | ||
public: | ||
CAboutDlg(); | ||
|
||
// Dialog Data | ||
//{{AFX_DATA(CAboutDlg) | ||
enum { IDD = IDD_ABOUTBOX }; | ||
//}}AFX_DATA | ||
|
||
// ClassWizard generated virtual function overrides | ||
//{{AFX_VIRTUAL(CAboutDlg) | ||
protected: | ||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support | ||
//}}AFX_VIRTUAL | ||
|
||
// Implementation | ||
protected: | ||
//{{AFX_MSG(CAboutDlg) | ||
// No message handlers | ||
//}}AFX_MSG | ||
DECLARE_MESSAGE_MAP() | ||
}; | ||
|
||
CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) | ||
{ | ||
//{{AFX_DATA_INIT(CAboutDlg) | ||
//}}AFX_DATA_INIT | ||
} | ||
|
||
void CAboutDlg::DoDataExchange(CDataExchange* pDX) | ||
{ | ||
CDialog::DoDataExchange(pDX); | ||
//{{AFX_DATA_MAP(CAboutDlg) | ||
//}}AFX_DATA_MAP | ||
} | ||
|
||
BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) | ||
//{{AFX_MSG_MAP(CAboutDlg) | ||
// No message handlers | ||
//}}AFX_MSG_MAP | ||
END_MESSAGE_MAP() | ||
|
||
// App command to run the dialog | ||
void CDemoApp::OnAppAbout() | ||
{ | ||
CAboutDlg aboutDlg; | ||
aboutDlg.DoModal(); | ||
} | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// CDemoApp message handlers | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Microsoft Developer Studio Workspace File, Format Version 6.00 | ||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! | ||
|
||
############################################################################### | ||
|
||
Project: "Demo"=".\Demo.dsp" - Package Owner=<4> | ||
|
||
Package=<5> | ||
{{{ | ||
}}} | ||
|
||
Package=<4> | ||
{{{ | ||
Begin Project Dependency | ||
Project_Dep_Name ResizableLib | ||
End Project Dependency | ||
}}} | ||
|
||
############################################################################### | ||
|
||
Project: "ResizableLib"="..\ResizableLib\ResizableLib.dsp" - Package Owner=<4> | ||
|
||
Package=<5> | ||
{{{ | ||
}}} | ||
|
||
Package=<4> | ||
{{{ | ||
}}} | ||
|
||
############################################################################### | ||
|
||
Global: | ||
|
||
Package=<5> | ||
{{{ | ||
}}} | ||
|
||
Package=<3> | ||
{{{ | ||
}}} | ||
|
||
############################################################################### | ||
|
Oops, something went wrong.