-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
29 changed files
with
3,810 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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,133 @@ | ||
// 4i902.cpp : Defines the class behaviors for the application. | ||
// | ||
|
||
#include "stdafx.h" | ||
#include "4i902.h" | ||
#include "MainFrm.h" | ||
|
||
#include "4i902Doc.h" | ||
#include "4i902View.h" | ||
|
||
#ifdef _DEBUG | ||
#define new DEBUG_NEW | ||
#endif | ||
|
||
|
||
// Ci902App | ||
|
||
BEGIN_MESSAGE_MAP(Ci902App, CWinApp) | ||
ON_COMMAND(ID_APP_ABOUT, OnAppAbout) | ||
// Standard file based document commands | ||
ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew) | ||
ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen) | ||
END_MESSAGE_MAP() | ||
|
||
|
||
// Ci902App construction | ||
|
||
Ci902App::Ci902App() | ||
{ | ||
// TODO: add construction code here, | ||
// Place all significant initialization in InitInstance | ||
} | ||
|
||
|
||
// The one and only Ci902App object | ||
|
||
Ci902App theApp; | ||
|
||
// Ci902App initialization | ||
|
||
BOOL Ci902App::InitInstance() | ||
{ | ||
// InitCommonControls() is required on Windows XP if an application | ||
// manifest specifies use of ComCtl32.dll version 6 or later to enable | ||
// visual styles. Otherwise, any window creation will fail. | ||
InitCommonControls(); | ||
|
||
CWinApp::InitInstance(); | ||
|
||
// Initialize OLE libraries | ||
if (!AfxOleInit()) | ||
{ | ||
AfxMessageBox(IDP_OLE_INIT_FAILED); | ||
return FALSE; | ||
} | ||
AfxEnableControlContainer(); | ||
// Standard initialization | ||
// If you are not using these features and wish to reduce the size | ||
// of your final executable, you should remove from the following | ||
// the specific initialization routines you do not need | ||
// Change the registry key under which our settings are stored | ||
// TODO: You should modify this string to be something appropriate | ||
// such as the name of your company or organization | ||
SetRegistryKey(_T("Local AppWizard-Generated Applications")); | ||
LoadStdProfileSettings(4); // Load standard INI file options (including MRU) | ||
// Register the application's document templates. Document templates | ||
// serve as the connection between documents, frame windows and views | ||
CSingleDocTemplate* pDocTemplate; | ||
pDocTemplate = new CSingleDocTemplate( | ||
IDR_MAINFRAME, | ||
RUNTIME_CLASS(Ci902Doc), | ||
RUNTIME_CLASS(CMainFrame), // main SDI frame window | ||
RUNTIME_CLASS(Ci902View)); | ||
if (!pDocTemplate) | ||
return FALSE; | ||
AddDocTemplate(pDocTemplate); | ||
// Parse command line for standard shell commands, DDE, file open | ||
CCommandLineInfo cmdInfo; | ||
ParseCommandLine(cmdInfo); | ||
// Dispatch commands specified on the command line. Will return FALSE if | ||
// app was launched with /RegServer, /Register, /Unregserver or /Unregister. | ||
if (!ProcessShellCommand(cmdInfo)) | ||
return FALSE; | ||
// The one and only window has been initialized, so show and update it | ||
m_pMainWnd->ShowWindow(SW_SHOW); | ||
m_pMainWnd->UpdateWindow(); | ||
// call DragAcceptFiles only if there's a suffix | ||
// In an SDI app, this should occur after ProcessShellCommand | ||
return TRUE; | ||
} | ||
|
||
|
||
|
||
// CAboutDlg dialog used for App About | ||
|
||
class CAboutDlg : public CDialog | ||
{ | ||
public: | ||
CAboutDlg(); | ||
|
||
// Dialog Data | ||
enum { IDD = IDD_ABOUTBOX }; | ||
|
||
protected: | ||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support | ||
|
||
// Implementation | ||
protected: | ||
DECLARE_MESSAGE_MAP() | ||
}; | ||
|
||
CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) | ||
{ | ||
} | ||
|
||
void CAboutDlg::DoDataExchange(CDataExchange* pDX) | ||
{ | ||
CDialog::DoDataExchange(pDX); | ||
} | ||
|
||
BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) | ||
END_MESSAGE_MAP() | ||
|
||
// App command to run the dialog | ||
void Ci902App::OnAppAbout() | ||
{ | ||
CAboutDlg aboutDlg; | ||
aboutDlg.DoModal(); | ||
} | ||
|
||
|
||
// Ci902App message handlers | ||
|
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,29 @@ | ||
Microsoft Developer Studio Workspace File, Format Version 6.00 | ||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! | ||
|
||
############################################################################### | ||
|
||
Project: "4i902"=.\4i902.dsp - Package Owner=<4> | ||
|
||
Package=<5> | ||
{{{ | ||
}}} | ||
|
||
Package=<4> | ||
{{{ | ||
}}} | ||
|
||
############################################################################### | ||
|
||
Global: | ||
|
||
Package=<5> | ||
{{{ | ||
}}} | ||
|
||
Package=<3> | ||
{{{ | ||
}}} | ||
|
||
############################################################################### | ||
|
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,31 @@ | ||
// 4i902.h : main header file for the 4i902 application | ||
// | ||
#pragma once | ||
|
||
#ifndef __AFXWIN_H__ | ||
#error include 'stdafx.h' before including this file for PCH | ||
#endif | ||
|
||
#include "resource.h" // main symbols | ||
|
||
|
||
// Ci902App: | ||
// See 4i902.cpp for the implementation of this class | ||
// | ||
|
||
class Ci902App : public CWinApp | ||
{ | ||
public: | ||
Ci902App(); | ||
|
||
|
||
// Overrides | ||
public: | ||
virtual BOOL InitInstance(); | ||
|
||
// Implementation | ||
afx_msg void OnAppAbout(); | ||
DECLARE_MESSAGE_MAP() | ||
}; | ||
|
||
extern Ci902App theApp; |
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,21 @@ | ||
Microsoft Visual Studio Solution File, Format Version 7.00 | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "4i902", "4i902.vcproj", "{92A35D1A-D185-42A9-9381-273F0A14EC39}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfiguration) = preSolution | ||
ConfigName.0 = Debug | ||
ConfigName.1 = Release | ||
EndGlobalSection | ||
GlobalSection(ProjectDependencies) = postSolution | ||
EndGlobalSection | ||
GlobalSection(ProjectConfiguration) = postSolution | ||
{92A35D1A-D185-42A9-9381-273F0A14EC39}.Debug.ActiveCfg = Debug|Win32 | ||
{92A35D1A-D185-42A9-9381-273F0A14EC39}.Debug.Build.0 = Debug|Win32 | ||
{92A35D1A-D185-42A9-9381-273F0A14EC39}.Release.ActiveCfg = Release|Win32 | ||
{92A35D1A-D185-42A9-9381-273F0A14EC39}.Release.Build.0 = Release|Win32 | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityAddIns) = postSolution | ||
EndGlobalSection | ||
EndGlobal |
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,104 @@ | ||
; CLW file contains information for the MFC ClassWizard | ||
|
||
[General Info] | ||
Version=1 | ||
LastClass= | ||
LastTemplate=CDialog | ||
NewFileInclude1=#include "stdafx.h" | ||
NewFileInclude2=#include "4i902.h" | ||
LastPage=0 | ||
|
||
ClassCount=0 | ||
|
||
ResourceCount=3 | ||
Resource1=IDD_ABOUTBOX | ||
Resource2=IDR_MAINFRAME | ||
Resource3=IDD_I902_FORM | ||
|
||
[DLG:IDD_I902_FORM] | ||
Type=1 | ||
Class=? | ||
ControlCount=24 | ||
Control1=IDC_EDIT1,edit,1350631552 | ||
Control2=IDC_EDIT3,edit,1350631552 | ||
Control3=IDC_EDIT2,edit,1350631552 | ||
Control4=IDC_EDIT4,edit,1350631552 | ||
Control5=IDC_BUTTON1,button,1342242816 | ||
Control6=IDC_BUTTON2,button,1342242816 | ||
Control7=IDC_BUTTONDENSITYTIMEGRAPH,button,1342242816 | ||
Control8=IDC_BUTTON4,button,1342242816 | ||
Control9=IDC_STATIC,static,1342308352 | ||
Control10=IDC_STATIC,static,1342308352 | ||
Control11=IDC_STATIC,button,1342177287 | ||
Control12=IDC_STATIC,static,1342308352 | ||
Control13=IDC_LIST_L,listbox,1352728833 | ||
Control14=IDC_LIST_M,listbox,1352728833 | ||
Control15=IDC_STATIC,static,1342308352 | ||
Control16=IDC_STATIC,button,1342177287 | ||
Control17=IDC_STATIC,static,1342308352 | ||
Control18=IDC_STATIC,static,1342308352 | ||
Control19=IDC_STATIC,static,1342308352 | ||
Control20=IDC_PROGRESS1,msctls_progress32,1350565888 | ||
Control21=IDC_CHART2D,button,1073741831 | ||
Control22=IDC_UNEQUALCLIQUE,button,1342242816 | ||
Control23=IDC_TOGGLEBUTTON,button,1342242816 | ||
Control24=IDC_BUTTON6,button,1342242816 | ||
|
||
[TB:IDR_MAINFRAME] | ||
Type=1 | ||
Class=? | ||
Command1=ID_FILE_NEW | ||
Command2=ID_FILE_OPEN | ||
Command3=ID_FILE_SAVE | ||
Command4=ID_EDIT_CUT | ||
Command5=ID_EDIT_COPY | ||
Command6=ID_EDIT_PASTE | ||
Command7=ID_FILE_PRINT | ||
Command8=ID_APP_ABOUT | ||
CommandCount=8 | ||
|
||
[MNU:IDR_MAINFRAME] | ||
Type=1 | ||
Class=? | ||
Command1=ID_FILE_NEW | ||
Command2=ID_FILE_OPEN | ||
Command3=ID_FILE_SAVE | ||
Command4=ID_FILE_SAVE_AS | ||
Command5=ID_FILE_MRU_FILE1 | ||
Command6=ID_APP_EXIT | ||
Command7=ID_EDIT_UNDO | ||
Command8=ID_EDIT_CUT | ||
Command9=ID_EDIT_COPY | ||
Command10=ID_EDIT_PASTE | ||
Command11=ID_VIEW_TOOLBAR | ||
Command12=ID_VIEW_STATUS_BAR | ||
Command13=ID_APP_ABOUT | ||
CommandCount=13 | ||
|
||
[ACL:IDR_MAINFRAME] | ||
Type=1 | ||
Class=? | ||
Command1=ID_FILE_NEW | ||
Command2=ID_FILE_OPEN | ||
Command3=ID_FILE_SAVE | ||
Command4=ID_EDIT_UNDO | ||
Command5=ID_EDIT_CUT | ||
Command6=ID_EDIT_COPY | ||
Command7=ID_EDIT_PASTE | ||
Command8=ID_EDIT_UNDO | ||
Command9=ID_EDIT_CUT | ||
Command10=ID_EDIT_COPY | ||
Command11=ID_EDIT_PASTE | ||
Command12=ID_NEXT_PANE | ||
Command13=ID_PREV_PANE | ||
CommandCount=13 | ||
|
||
[DLG:IDD_ABOUTBOX] | ||
Type=1 | ||
Class=? | ||
ControlCount=4 | ||
Control1=IDC_STATIC,static,1342177283 | ||
Control2=IDC_STATIC,static,1342308480 | ||
Control3=IDC_STATIC,static,1342308352 | ||
Control4=IDOK,button,1342373889 | ||
|
Oops, something went wrong.