资源简介
这是本人用mfc编写的程序,界面不太漂亮,但是基本功能都有!希望对大家有帮助!
代码片段和文件信息
// MainFrm.cpp : implementation of the CMainframe class
//
#include “stdafx.h“
#include “扫雷.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)
ON_WM_CREATE()
ON_COMMAND(ID_START onstart)
//}}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
void CMainframe::onstart()
{
// TODO: Add your command handler code here
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 20305 2008-04-18 19:03 saolei\Debug\MainFrm.obj
文件 105537 2008-04-18 19:03 saolei\Debug\StdAfx.obj
文件 205824 2008-04-18 19:03 saolei\Debug\vc60.idb
文件 372736 2008-04-18 19:03 saolei\Debug\vc60.pdb
文件 131126 2008-04-18 19:03 saolei\Debug\扫雷.exe
文件 328668 2008-04-18 19:03 saolei\Debug\扫雷.ilk
文件 22574 2008-04-18 19:03 saolei\Debug\扫雷.obj
文件 5578952 2008-04-18 19:03 saolei\Debug\扫雷.pch
文件 500736 2008-04-18 19:03 saolei\Debug\扫雷.pdb
文件 12788 2008-04-01 21:48 saolei\Debug\扫雷.res
文件 14362 2008-04-18 19:03 saolei\Debug\扫雷Doc.obj
文件 39696 2008-04-18 19:03 saolei\Debug\扫雷View.obj
文件 2486 2008-04-01 21:12 saolei\MainFrm.cpp
文件 1466 2008-04-01 21:08 saolei\MainFrm.h
文件 4249 2008-04-01 17:35 saolei\ReadMe.txt
文件 1078 2008-04-01 21:22 saolei\res\12.bmp
文件 1270 2008-04-01 21:48 saolei\res\2.bmp
文件 1270 2008-04-01 21:47 saolei\res\bitmap1.bmp
文件 1270 2008-04-01 21:22 saolei\res\bitmap2.bmp
文件 1078 2008-04-01 21:22 saolei\res\bitmap4.bmp
文件 1078 2008-04-01 17:35 saolei\res\Toolbar.bmp
文件 1078 2008-04-01 17:35 saolei\res\扫雷.ico
文件 396 2008-04-01 17:35 saolei\res\扫雷.rc2
文件 1078 2008-04-01 17:35 saolei\res\扫雷Doc.ico
文件 910 2008-04-01 21:30 saolei\resource.h
文件 206 2008-04-01 17:35 saolei\StdAfx.cpp
文件 1054 2008-04-01 17:35 saolei\StdAfx.h
文件 34520 2008-04-18 19:03 saolei\扫雷.aps
文件 1898 2008-04-18 19:03 saolei\扫雷.clw
文件 4145 2008-04-01 17:35 saolei\扫雷.cpp
............此处省略18个文件信息
- 上一篇:c语言模拟电梯程序可视化
- 下一篇:算术编码C++ 源代码
相关资源
- MFC的RGB调色器
- MFC多线程 多事件
- MFC对话框获取本地网卡信息
- 基于MFC用OpenGL画得一个三棱柱
- mfc酒店管理系统C++编写,程序简单,
- MFC做的计算三角形面积
- MFC画直线及简单图形
- c++ 、MFC 实现中点画圆算法及工程代码
- MFC websocket server | MFC websocket服务器
- VC++6.0 MFC使用ODBC链接MySQL把图片写入
- 肯德基点餐界面MFC
- 基于c++MFC的运动会管理系统.rar
- 个人收支财务管理系统 VC6.0MFC+ sql s
- C++聊天室(MFC实现)
- MFC 点对点聊天小系统
- vs2010 操作WORD VBA MFC 批注 WORD
- 基于MFCC的GMM的说话人识别.rar
- MFC记事本程序
- Guard Port - MFC 2012
- VC++6.0字符串小游戏扫雷
- VC之MFC类库中文手册一怀去意.rar
- 解决VC6生成的MFC程序不能在没有安装
- MFC非客户区完美自绘
- mfc42d.dll 【64位+32位】34087
- MFC解决窗口保存及重绘闪烁问题的一
- MFC解决窗口保存及重绘闪烁问题的一
- 在MFC中使用duilib
- 文本有关的说话人识别系统
- MFC与SQL工资管理系统.rar
- Hermite,Bezier,三次B样条曲线的MFC实现
评论
共有 条评论