MFC编写的推箱子游戏

上传者: u012372632 | 上传时间: 2022-06-20 21:02:36 | 文件大小: 1.44MB | 文件类型: RAR
用MFC编写的推箱子游戏 BOOL CSkyblue_BoxManApp::InitInstance() { // 定义和注册窗口 m_pBoxManWnd = new CBoxManWnd(); WNDCLASS wc; ZeroMemory(&wc, sizeof(wc)); wc.hInstance = AfxGetInstanceHandle(); wc.lpfnWndProc = ::DefWindowProc; wc.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH); wc.hCursor = LoadCursor(IDC_ARROW); wc.hIcon = LoadIcon(IDR_MAINFRAME); wc.lpszClassName = className; wc.lpszMenuName = MAKEINTRESOURCE(IDR_MAINFRAME); // 注册主窗口类 if (!AfxRegisterClass(&wc)) { AfxMessageBox("注册窗口类失败!!!"); return FALSE; } UINT uWidth = 550; UINT uHeight = 550; UINT uXPos = GetSystemMetrics(SM_CXSCREEN)/2 - uWidth/2 ; UINT uYPos = GetSystemMetrics(SM_CYSCREEN)/2 - uHeight/2 ; //创建,显示窗口 if ( !m_pBoxManWnd->CreateEx( NULL, className, _T("推箱子"), WS_SYSMENU | WS_CAPTION | WS_MINIMIZEBOX, uXPos, uYPos, uWidth, uHeight, NULL, NULL) ) { AfxMessageBox("创建主窗口失败!!!"); return FALSE; } m_pBoxManWnd->ShowWindow(SW_NORMAL); // 绑定窗口为主窗口 m_pMainWnd = m_pBoxManWnd; return TRUE; }

文件下载

资源详情

[{"title":"( 51 个子文件 1.44MB ) MFC编写的推箱子游戏","children":[{"title":"推箱子","children":[{"title":"skyblue_BoxMan","children":[{"title":"skyblue_BoxMan.dsw <span style='color:#111;'> 536B </span>","children":null,"spread":false},{"title":"skyblue_BoxMan.ncb <span style='color:#111;'> 337.00KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"skyblue_BoxManDoc.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"ico00002.ico <span style='color:#111;'> 766B </span>","children":null,"spread":false},{"title":"ico00003.ico <span style='color:#111;'> 766B </span>","children":null,"spread":false},{"title":"ico00004.ico <span style='color:#111;'> 766B </span>","children":null,"spread":false},{"title":"Toolbar.bmp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"skyblue_BoxMan.rc2 <span style='color:#111;'> 406B </span>","children":null,"spread":false},{"title":"skyblue_BoxMan.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"ico00001.ico <span style='color:#111;'> 766B </span>","children":null,"spread":false}],"spread":true},{"title":"skyblue_BoxMan.cpp <span style='color:#111;'> 2.39KB </span>","children":null,"spread":false},{"title":"skyblue_BoxManDoc.cpp <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false},{"title":"skyblue_BoxMan.dsp <span style='color:#111;'> 4.99KB </span>","children":null,"spread":false},{"title":"HelpDlg.h <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"map.txt <span style='color:#111;'> 4.35KB </span>","children":null,"spread":false},{"title":"skyblue_BoxManView.cpp <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false},{"title":"BoxMan.cpp <span style='color:#111;'> 13.92KB </span>","children":null,"spread":false},{"title":"skyblue_BoxManView.h <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false},{"title":"skyblue_BoxMan.h <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"skyblue_BoxMan.clw <span style='color:#111;'> 3.23KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 216B </span>","children":null,"spread":false},{"title":"MainFrm.cpp <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false},{"title":"MissionLevelDlg.h <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"skyblue_BoxManDoc.h <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"HelpDlg.cpp <span style='color:#111;'> 902B </span>","children":null,"spread":false},{"title":"MainFrm.h <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"BoxManWnd.cpp <span style='color:#111;'> 2.48KB </span>","children":null,"spread":false},{"title":"skyblue_BoxMan.plg <span style='color:#111;'> 262B </span>","children":null,"spread":false},{"title":"skyblue_BoxMan.rc <span style='color:#111;'> 11.50KB </span>","children":null,"spread":false},{"title":"BoxMan.h <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"StdAfx.obj <span style='color:#111;'> 103.30KB </span>","children":null,"spread":false},{"title":"skyblue_BoxMan.res <span style='color:#111;'> 16.96KB </span>","children":null,"spread":false},{"title":"HelpDlg.obj <span style='color:#111;'> 9.47KB </span>","children":null,"spread":false},{"title":"MissionLevelDlg.obj <span style='color:#111;'> 10.58KB </span>","children":null,"spread":false},{"title":"skyblue_BoxMan.pdb <span style='color:#111;'> 2.78MB </span>","children":null,"spread":false},{"title":"map.info <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"RCa05740 <span style='color:#111;'> 21.62KB </span>","children":null,"spread":false},{"title":"BoxMan.obj <span style='color:#111;'> 33.14KB </span>","children":null,"spread":false},{"title":"BoxManWnd.obj <span style='color:#111;'> 26.91KB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 249.00KB </span>","children":null,"spread":false},{"title":"skyblue_BoxMan.ilk <span style='color:#111;'> 1.71MB </span>","children":null,"spread":false},{"title":"skyblue_BoxMan.obj <span style='color:#111;'> 16.23KB </span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'> 372.00KB </span>","children":null,"spread":false},{"title":"skyblue_BoxMan.exe <span style='color:#111;'> 3.77MB </span>","children":null,"spread":false}],"spread":false},{"title":"skyblue_BoxMan.aps <span style='color:#111;'> 46.84KB </span>","children":null,"spread":false},{"title":"skyblue_BoxMan.opt <span style='color:#111;'> 54.50KB </span>","children":null,"spread":false},{"title":"MissionLevelDlg.cpp <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 4.40KB </span>","children":null,"spread":false},{"title":"BoxManWnd.h <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明