資源簡介
利用MFC將一定范圍內的經緯線網轉化為墨卡托投影,并可視化,生成特殊點的坐標值以及變形率
代碼片段和文件信息
//?MainFrm.cpp?:?CMainframe?類的實現
//
#include?“stdafx.h“
#include?“墨卡托投影.h“
#include?“MainFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
//?CMainframe
IMPLEMENT_DYNCREATE(CMainframe?CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe?CframeWnd)
ON_WM_CREATE()
END_MESSAGE_MAP()
static?UINT?indicators[]?=
{
ID_SEPARATOR???????????//?狀態行指示器
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
//?CMainframe?構造/析構
CMainframe::CMainframe()
{
//?TODO:?在此添加成員初始化代碼
}
CMainframe::~CMainframe()
{
}
int?CMainframe::OnCreate(LPCREATESTRUCT?lpCreateStruct)
{
if?(CframeWnd::OnCreate(lpCreateStruct)?==?-1)
return?-1;
if?(!m_wndStatusBar.Create(this))
{
TRACE0(“未能創建狀態欄\n“);
return?-1;??????//?未能創建
}
m_wndStatusBar.SetIndicators(indicators?sizeof(indicators)/sizeof(UINT));
return?0;
}
BOOL?CMainframe::PreCreateWindow(CREATESTRUCT&?cs)
{
if(?!CframeWnd::PreCreateWindow(cs)?)
return?FALSE;
//?TODO:?在此處通過修改
//??CREATESTRUCT?cs?來修改窗口類或樣式
return?TRUE;
}
//?CMainframe?診斷
#ifdef?_DEBUG
void?CMainframe::AssertValid()?const
{
CframeWnd::AssertValid();
}
void?CMainframe::Dump(CDumpContext&?dc)?const
{
CframeWnd::Dump(dc);
}
#endif?//_DEBUG
//?CMainframe?消息處理程序
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????29696??2017-10-27?10:38??墨卡托投影\.vs\墨卡托投影\v14\.suo
?????文件??103546880??2017-10-27?10:36??墨卡托投影\ipch\墨卡托投影-2729a8cd\墨卡托投影-8a270093.ipch
?????文件??????12626??2017-10-26?22:10??墨卡托投影\墨卡托投影\Debug\cl.command.1.tlog
?????文件?????221432??2017-10-26?22:10??墨卡托投影\墨卡托投影\Debug\CL.read.1.tlog
?????文件???????5708??2017-10-26?22:10??墨卡托投影\墨卡托投影\Debug\CL.write.1.tlog
?????文件??????????2??2017-10-26?22:10??墨卡托投影\墨卡托投影\Debug\li
?????文件??????????2??2017-10-26?22:10??墨卡托投影\墨卡托投影\Debug\li
?????文件??????????2??2017-10-26?22:10??墨卡托投影\墨卡托投影\Debug\li
?????文件??????????2??2017-10-26?22:10??墨卡托投影\墨卡托投影\Debug\li
?????文件??????????2??2017-10-26?22:10??墨卡托投影\墨卡托投影\Debug\li
?????文件??????????2??2017-10-26?22:10??墨卡托投影\墨卡托投影\Debug\li
?????文件???????6042??2017-10-26?22:10??墨卡托投影\墨卡托投影\Debug\li
?????文件??????18722??2017-10-26?22:10??墨卡托投影\墨卡托投影\Debug\li
?????文件???????3346??2017-10-26?22:10??墨卡托投影\墨卡托投影\Debug\li
?????文件??????71940??2017-10-27?10:36??墨卡托投影\墨卡托投影\Debug\MainFrm.obj
?????文件???????2294??2017-10-26?22:10??墨卡托投影\墨卡托投影\Debug\mt.command.1.tlog
?????文件???????1850??2017-10-26?22:10??墨卡托投影\墨卡托投影\Debug\mt.read.1.tlog
?????文件????????322??2017-10-26?22:10??墨卡托投影\墨卡托投影\Debug\mt.write.1.tlog
?????文件??????92683??2017-10-27?10:36??墨卡托投影\墨卡托投影\Debug\MyDoc.obj
?????文件??????59421??2017-10-27?10:38??墨卡托投影\墨卡托投影\Debug\MyView.obj
?????文件???????3370??2017-10-26?22:10??墨卡托投影\墨卡托投影\Debug\rc.command.1.tlog
?????文件??????12050??2017-10-26?22:10??墨卡托投影\墨卡托投影\Debug\rc.read.1.tlog
?????文件???????1330??2017-10-26?22:10??墨卡托投影\墨卡托投影\Debug\rc.write.1.tlog
?????文件?????923910??2017-10-27?10:36??墨卡托投影\墨卡托投影\Debug\stdafx.obj
?????文件????3738624??2017-10-26?22:10??墨卡托投影\墨卡托投影\Debug\vc100.idb
?????文件????3469312??2017-10-26?22:10??墨卡托投影\墨卡托投影\Debug\vc100.pdb
?????文件????2485248??2017-10-27?10:38??墨卡托投影\墨卡托投影\Debug\vc140.idb
?????文件????6737920??2017-10-27?10:38??墨卡托投影\墨卡托投影\Debug\vc140.pdb
?????文件????????667??2017-01-02?20:00??墨卡托投影\墨卡托投影\Debug\墨卡托投影.exe.em
?????文件????????732??2017-10-26?22:10??墨卡托投影\墨卡托投影\Debug\墨卡托投影.exe.em
............此處省略60個文件信息
- 上一篇:VS實現C語言五子棋
- 下一篇:可視化程序設計/MFC/圖書管理系統
評論
共有 條評論