?? radiodoc.cpp
字號:
/*
This project was created using the Top Studio AppWizard
Radio Navigation Simulator
Project: RADIO
Author : GPS Center
Date : 星期二, 三月 21, 2006
*/
// RADIODoc.cpp : implementation of the CRADIODoc class
//
#include "stdafx.h"
#include "RADIO.h"
#include "RADIODoc.h"
#include "APPStatic.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CRADIODoc
IMPLEMENT_DYNCREATE(CRADIODoc, CDocument)
BEGIN_MESSAGE_MAP(CRADIODoc, CDocument)
//{{AFX_MSG_MAP(CRADIODoc)
ON_COMMAND(ID_FILESETTING, OnFilesetting)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CRADIODoc construction/destruction
CRADIODoc::CRADIODoc()
{
arraySheetSizes.SetSize(3,1);
arraySheetSizes[0]=APPStatic::app_sizeSheet1;
arraySheetSizes[1]=APPStatic::app_sizeSheet2;
TCHAR cPath[MAX_PATH];
::GetCurrentDirectory(MAX_PATH,cPath);
m_strRadioFilePath=CString(cPath);
m_strRadioFileNameWithoutPath="RADIO.dat";
m_strTrajFileName=CString(cPath)+"\\TRAJ.dat";
m_dRadioFreq=1.0;
}
CRADIODoc::~CRADIODoc()
{
}
BOOL CRADIODoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CRADIODoc serialization
void CRADIODoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CRADIODoc diagnostics
#ifdef _DEBUG
void CRADIODoc::AssertValid() const
{
CDocument::AssertValid();
}
void CRADIODoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CRADIODoc commands
void CRADIODoc::OnFilesetting()
{
m_pDlgFs=new CDlgFileSetting();
m_pDlgFs->Create(IDD_FILESETTING);
m_pDlgFs->ShowWindow(SW_SHOW);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -