资源简介
Minigui 的综合示例代码mde包,给大家分享一下
代码片段和文件信息
/*
** $Id: bomb.cv 1.17 2003/08/15 08:45:46 weiym Exp $
**
** bomb.c: The MineSweeper game.
**
** Copyright (C) 1999~ 2002 Zheng Xiang and others.
** Copyright (C) 2003 Feynman Software.
*/
/*
** This source is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public
** License as published by the Free Software Foundation; either
** version 2 of the License or (at your option) any later version.
**
** This software is distributed in the hope that it will be useful
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
** General Public License for more details.
**
** You should have received a copy of the GNU General Public
** License along with this library; if not write to the Free
** Software Foundation Inc. 59 Temple Place - Suite 330 Boston
** MA 02111-1307 USA
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
typedef struct
{
int flag;
int value;
BOOL test;
BOOL hit;
BOOL bombout;
BOOL error;
}BOM;
typedef struct
{
int x;
int y;
BOOL NY;
}NO;
typedef struct
{
int highscore;
char name[20];
}SCORE;
static BOM bom[30][16];
static NO NoAdr[540];
static SCORE score[3];
static int itime leftbombnum;
static int bombnum = 99;
void SearchGround(HWND hWndint xint y);
int Open(HWND hWndint xint y);
int TestMyWinProc(HWND hWndint messageWPARAM wParamLPARAM lParam);
void InitMyWinCreateInfo(PMAINWINCREATE pCreateInfo);
void InitAbHostedCreateInfo(HWND hHosting PMAINWINCREATE pCreateInfo);
void InitHighScoreCreateInfo (HWND hHosting PMAINWINCREATE pCreateInfo);
void InitCongratulationCreateInfo (HWND hHosting PMAINWINCREATE pCreateInfo);
void* TestMyWindow(void* data);
void BombGame(HWND hWnd int x int y);
void Finished(HWND hWnd);
void Cancel3Dframe(HDC hdc int lint tint rint b);
void TextValue(HDC hdc int xint yint value);
void BombOut(HWND hWnd);
void BothButtonDownProc(HWND hWnd int x int y);
void DrawDigit(HDC hdc char* buffer int CLOCK);
#define ID_ABOUT 300
#define ID_NEW 301
#define ID_LARGE 302
#define ID_MIDDLE 303
#define ID_SMALL 304
#define ID_CLOSE 305
#define ID_HIGHSCORE 306
#define ID_CLOCK 400
#define WIDTH_LARGEWIN 544
#define HEIGHT_LARGEWIN 470
#define WIDTH_MIDDLEWIN 292
#define HEIGHT_MIDDLEWIN 430
#define WIDTH_SMALLWIN 178
#define HEIGHT_SMALLWIN 270
#define WIDTH_FACE 30
#define HEIGHT_FACE 30
#define WIDTH_DIGIT 14
#define WIDTH_BOMNUM (2*WIDTH_DIGIT)
#define HEIGHT_BOMNUM 30
#define WIDTH_CLOCK (3*WIDTH_DIGIT)
#define HEIGHT_CLOCK 30
#define FREQ_CLOCK 10
#define WIDTH_BOX 18
#define HEIGHT_BOX
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
.C..... 28052 2003-08-18 18:24 mde-1.3.0\aclocal.m4
.C..... 327 2003-05-16 19:37 mde-1.3.0\AUTHORS
.C..... 51 2003-04-12 01:51 mde-1.3.0\autogen.sh
.C..... 3869 2009-05-30 21:34 mde-1.3.0\bomb\.deps\bomb.Po
目录 0 2010-04-23 14:21 mde-1.3.0\bomb\.deps
.C..... 69175 2009-05-30 21:34 mde-1.3.0\bomb\bomb
.C..... 40694 2003-08-15 01:45 mde-1.3.0\bomb\bomb.c
.C..... 74128 2009-05-30 21:34 mde-1.3.0\bomb\bomb.o
.C..... 12067 2009-05-30 21:34 mde-1.3.0\bomb\Makefile
.C..... 56 2001-09-02 23:28 mde-1.3.0\bomb\Makefile.am
.C..... 11497 2003-08-18 18:24 mde-1.3.0\bomb\Makefile.in
.C..... 278 2001-03-01 18:26 mde-1.3.0\bomb\res\0.bmp
.C..... 278 2001-03-01 18:26 mde-1.3.0\bomb\res\1.bmp
.C..... 278 2001-03-01 18:26 mde-1.3.0\bomb\res\2.bmp
.C..... 278 2001-03-01 18:26 mde-1.3.0\bomb\res\3.bmp
.C..... 278 2001-03-01 18:26 mde-1.3.0\bomb\res\4.bmp
.C..... 278 2001-03-01 18:26 mde-1.3.0\bomb\res\5.bmp
.C..... 278 2001-03-01 18:26 mde-1.3.0\bomb\res\6.bmp
.C..... 278 2001-03-01 18:26 mde-1.3.0\bomb\res\7.bmp
.C..... 278 2001-03-01 18:26 mde-1.3.0\bomb\res\8.bmp
.C..... 278 2001-03-01 18:26 mde-1.3.0\bomb\res\9.bmp
.C..... 534 2001-03-01 18:26 mde-1.3.0\bomb\res\face.bmp
.C..... 534 2001-03-01 18:26 mde-1.3.0\bomb\res\face1.bmp
.C..... 534 2001-03-01 18:26 mde-1.3.0\bomb\res\finished.bmp
.C..... 230 2001-03-01 18:26 mde-1.3.0\bomb\res\flag.bmp
.C..... 246 2001-03-01 18:26 mde-1.3.0\bomb\res\hitfalse.bmp
.C..... 230 2001-03-01 18:26 mde-1.3.0\bomb\res\lei.bmp
.C..... 5648 2009-05-30 21:34 mde-1.3.0\bomb\res\Makefile
.C..... 145 2001-09-02 23:28 mde-1.3.0\bomb\res\Makefile.am
.C..... 5416 2003-08-18 18:24 mde-1.3.0\bomb\res\Makefile.in
............此处省略395个文件信息
- 上一篇:17monipdb.datx
- 下一篇:FPGA DDS 信号发生
相关资源
- jgraph官方与帮助文档
- DotNetCharting程序及DotNetCharting破解版
- AD16 心型灯设计原理图PCB
- layimDemo.rar
- ON安森美AltiumDesigner 器件集成封装库
- EIS电路拟合AZSimDemo
- 微软Chart控件大全
- directx的程序
- altiumdesigner最全电阻封装
- CSocket_Server.zip
- 可调直流稳压电源原理图及pcb图
- cocoapi-master.zip
- 全套EasyUI
- 18个Direct2D程序
- 《机器视觉算法与应用》书后源文件
- Activiti官方唯一推荐中文书籍——《
- 含最新上海区划地图的Echart2最新版
- three.js学习PPT以及小
- DSP示例代码253710
- 领域模型代码
- pdfiumDemo_src_exe.rar
- 00 ANSYS Fluent Tutorial Guide-2019R3官方教程
- XC886 编程指导
- STM32F0实战 基于HAL库开发 高显生著
- SDLMultiTermDesktop2014_SP1
- ALTIUM_DESIGNER实用宝典:原理图与PCB设
- AltiumDesigner绘制51单片机最小系统教程
- minigui1.6.10在mini2440上的移植
- HI3521A_HI3520DV300移植MiniGUI
- Timdesigner9.2
评论
共有 条评论