资源简介
本文件是C++源码。先运行工程,解压后选择对应的Data文件夹里的.mif文件加载即可

代码片段和文件信息
// MainFrm.cpp : implementation of the CMainframe class
//
#include “stdafx.h“
#include “MifLoader.h“
#include “MainFrm.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMainframe
IMPLEMENT_DYNCREATE(CMainframe CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code !
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static UINT indicators[] =
{
ID_SEPARATOR // status line indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
// CMainframe construction/destruction
CMainframe::CMainframe()
{
// TODO: add member initialization code here
}
CMainframe::~CMainframe()
{
}
int CMainframe::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CframeWnd::OnCreate(lpCreateStruct) == -1)
return -1;
if (!m_wndToolBar.CreateEx(this TBstyle_FLAT WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed to create toolbar\n“);
return -1; // fail to create
}
if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators
sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed to create status bar\n“);
return -1; // fail to create
}
// TODO: Delete these three lines if you don‘t want the toolbar to
// be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return 0;
}
BOOL CMainframe::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CframeWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CMainframe diagnostics
#ifdef _DEBUG
void CMainframe::AssertValid() const
{
CframeWnd::AssertValid();
}
void CMainframe::Dump(CDumpContext& dc) const
{
CframeWnd::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMainframe message handlers
LRESULT CMainframe::DefWindowProc(UINT message WPARAM wParam LPARAM lParam)
{
// TODO: Add your specialized code here and/or call the base class
return CframeWnd::DefWindowProc(message wParam lParam);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 52638 2015-11-10 10:13 地图显示优1\Data\China.mid
文件 3210653 2015-11-10 10:13 地图显示优1\Data\China.mif
文件 85490 2015-11-10 10:13 地图显示优1\Data\world.mid
文件 1023396 2015-11-10 10:13 地图显示优1\Data\world.mif
文件 20915 2015-11-10 11:29 地图显示优1\MifLoader2\Debug\MainFrm.obj
文件 0 2015-11-10 11:29 地图显示优1\MifLoader2\Debug\MainFrm.sbr
文件 5596160 2016-07-09 23:37 地图显示优1\MifLoader2\Debug\MifLoader.bsc
文件 131134 2016-07-09 23:37 地图显示优1\MifLoader2\Debug\MifLoader.exe
文件 354292 2016-07-09 23:37 地图显示优1\MifLoader2\Debug\MifLoader.ilk
文件 28305 2015-11-10 11:35 地图显示优1\MifLoader2\Debug\MifLoader.obj
文件 7301168 2015-11-10 10:13 地图显示优1\MifLoader2\Debug\MifLoader.pch
文件 508928 2016-07-09 23:37 地图显示优1\MifLoader2\Debug\MifLoader.pdb
文件 7552 2015-11-10 11:29 地图显示优1\MifLoader2\Debug\MifLoader.res
文件 0 2015-11-10 11:35 地图显示优1\MifLoader2\Debug\MifLoader.sbr
文件 14906 2015-11-10 10:13 地图显示优1\MifLoader2\Debug\MifLoaderDoc.obj
文件 0 2015-11-10 10:13 地图显示优1\MifLoader2\Debug\MifLoaderDoc.sbr
文件 28942 2015-11-10 10:13 地图显示优1\MifLoader2\Debug\MifLoaderView.obj
文件 0 2015-11-10 10:13 地图显示优1\MifLoader2\Debug\MifLoaderView.sbr
文件 105671 2015-11-10 10:13 地图显示优1\MifLoader2\Debug\StdAfx.obj
文件 1374886 2015-11-10 10:13 地图显示优1\MifLoader2\Debug\StdAfx.sbr
文件 43460 2016-07-09 23:37 地图显示优1\MifLoader2\Debug\VBF_la
文件 0 2016-07-09 23:37 地图显示优1\MifLoader2\Debug\VBF_la
文件 31570 2016-07-09 23:37 地图显示优1\MifLoader2\Debug\VBF_Map.obj
文件 0 2016-07-09 23:37 地图显示优1\MifLoader2\Debug\VBF_Map.sbr
文件 467968 2016-07-09 23:37 地图显示优1\MifLoader2\Debug\vc60.idb
文件 413696 2016-07-09 23:37 地图显示优1\MifLoader2\Debug\vc60.pdb
文件 2730 2015-11-10 10:13 地图显示优1\MifLoader2\MainFrm.cpp
文件 1681 2015-11-10 10:13 地图显示优1\MifLoader2\MainFrm.h
文件 29640 2015-11-10 10:32 地图显示优1\MifLoader2\MifLoader.aps
文件 2604 2015-11-10 11:10 地图显示优1\MifLoader2\MifLoader.clw
............此处省略36个文件信息
相关资源
- 国际象棋的qt源代码
- C++中头文件与源文件的作用详解
- C++多线程网络编程Socket
- VC++ 多线程文件读写操作
- 利用C++哈希表的方法实现电话号码查
- 移木块游戏,可以自编自玩,vc6.0编写
- C++纯文字DOS超小RPG游戏
- VC++MFC小游戏实例教程(实例)+MFC类库
- 连铸温度场计算程序(C++)
- 6自由度机器人运动学正反解C++程序
- Em算法(使用C++编写)
- libstdc++-4.4.7-4.el6.i686.rpm
- VC++实现CMD命令执行与获得返回信息
- 白话C++(全)
- C++标准库第1、2
- 大数类c++大数类
- C++语言编写串口调试助手
- c++素数筛选法
- C++ mqtt 用法
- 商品库存管理系统 C++ MFC
- c++ 多功能计算器
- C++17 In Detail
- 嵌入式QtC++编程课件
- 颜色识别形状识别STM103嵌入式代码
- c++ 邮件多附件群发
- c++ 透明代理(hookproxy)
- mfc 调用redis
- FTP客户端源码(c++)
- c++ 画图(14Qt-XPS)
- c++多边形交并差运算
评论
共有 条评论