91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 7.88MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-17
  • 語言: C/C++
  • 標簽: mfc掃雷??

資源簡介

此代碼實現了初級掃雷的基本功能,但是無計時器和笑臉,有掃雷結束對話框

資源截圖

代碼片段和文件信息

/*------------------------------------------------------------
???HELLOWIN.C?--?Displays?“Hello?Windows?98!“?in?client?area
?????????????????(c)?Charles?Petzold?1998
??------------------------------------------------------------*/

#include?
#include?“resource.h“
#include?“WinMine.h“
#include?
#include?
#include?


LRESULT?CALLBACK?WndProc?(HWND?UINT?WPARAM?LPARAM)?;

POINT?getMousePosition(int?mxint?my);
int?countBomb(POINT?mousePos);
int?countFlag(POINT?mousePos);
BOOL?layMines();
void?placeNumber();
void?markOtherMine();
void?markOtherFlag();
void?pushMine(POINT?mousePos);
void?onMouseLButtonclick(HWND?hwndPOINT?mousePos);


int?WINAPI?WinMain?(HINSTANCE?hInstance?
HINSTANCE?hPrevInstance
????????????????????PSTR?szCmdLine?
int?iCmdShow)
{
?????static?TCHAR?szAmousePosName[]?=?TEXT?(“MyWinMine“)?;
?????HWND?????????hwnd?;
?????MSG??????????msg?;
?????WNDCLASS?????wndclass?;

?????wndclass.style?????????=?CS_HREDRAW?|?CS_VREDRAW?;
?????wndclass.lpfnWndProc???=?WndProc?;
?????wndclass.cbClsExtra????=?0?;
?????wndclass.cbWndExtra????=?0?;
?????wndclass.hInstance?????=?hInstance?;
?????wndclass.hIcon?????????=?LoadIcon?(hInstance?MAKEINTRESOURCE(IDI_MINEICON))?;
?????wndclass.hCursor???????=?LoadCursor?(NULL?IDC_ARROW)?;
?????wndclass.hbrBackground?=?(HBRUSH)?GetStockobject?(GRAY_BRUSH)?;
?????wndclass.lpszMenuName??=?NULL?;
?????wndclass.lpszClassName?=?szAmousePosName?;

//?RegisterClass?(&wndclass);
?if?(!RegisterClass?(&wndclass))
?????{
??????????MessageBox?(NULL?TEXT?(“This?program?requires?Windows?NT!“)?
??????????????????????szAmousePosName?MB_IConerror)?;
??????????return?0?;
?????}
???
?????hwnd?=?CreateWindow?(szAmousePosName??????????????????//?window中的名字確定
?????????????????????????TEXT?(“掃雷“)?//?窗口標題
?????????????????????????WS_SYSMENU?|?WS_MINIMIZEBOX?|WS_OVERLAPPED????????//?窗口樣式
?CW_USEDEFAULT??????????????//?x初始位置
?CW_USEDEFAULT??????????????//?y初始位置
?CW_USEDEFAULT??????????????//?x初始尺寸
?CW_USEDEFAULT??????????????//?y初始尺寸
??????????????????????????NULL???????????????????????//?父窗口的句柄
??????????????????????????NULL???????????????????????//?窗口菜單句柄
??????????????????????????hInstance??????????????????//?程序實例句柄
??????????????????????????NULL)?;?????????????????????//?創建參數
?????
?????ShowWindow?(hwnd?iCmdShow)?;???
?????UpdateWindow?(hwnd)?;
?????
?????while?(GetMessage?(&msg?NULL?0?0))
?????{
??????????TranslateMessage?(&msg)?;
??????????DispatchMessage?(&msg)?;
?????}
?????return?msg.wParam?;
}

LRESULT?CALLBACK?WndProc?(HWND?hwnd?UINT?message?WPARAM?wParam?LPARAM?lParam)
{
?static?HBITMAP?hBitmap?;
?static?int?????cxClient?cyClient?;
?BITMAP?????????bitmap?;
?HDC????????????hdc?hdcMem?;
?????PAINTSTRUCT ps?;
?????int????????????x?=?100?y?=?100?ij;
?HINSTANCE hInstance;
?int?mxmy;
?static?POINT?mousePosoldMousePos;
?POINT?mous

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????2166??2014-03-24?15:43??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\410.bmp

?????文件???????1086??2013-01-14?11:20??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\411.bmp

?????文件???????2326??2013-01-14?11:20??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\420.bmp

?????文件???????1166??2013-01-14?11:20??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\421.bmp

?????文件???????1558??2013-01-14?11:20??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\430.bmp

?????文件????????542??2013-01-14?11:20??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\431.bmp

?????文件???????1360??2013-01-14?11:20??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\432.wav

?????文件??????37960??2013-01-14?11:20??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\433.wav

?????文件??????25711??2013-01-14?11:20??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\434.wav

?????文件????????963??2015-04-01?16:46??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\Backup1\MyWinMine.sln

????..A..H.?????14336??2015-04-01?16:48??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\Backup1\MyWinMine.v12.suo

?????文件????????963??2015-04-01?17:07??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\Backup2\MyWinMine.sln

????..A..H.?????20992??2015-05-13?16:16??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\Backup2\MyWinMine.v11.suo

?????文件????????530??2015-05-15?14:04??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\Debug\BscMake.command.1.tlog

?????文件????????406??2015-05-15?14:05??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\Debug\bscmake.read.1.tlog

?????文件????????244??2015-05-15?14:05??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\Debug\bscmake.write.1.tlog

?????文件???????1490??2015-05-15?14:04??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\Debug\cl.command.1.tlog

?????文件??????19558??2015-05-15?14:05??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\Debug\CL.read.1.tlog

?????文件????????464??2015-05-15?14:05??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\Debug\CL.write.1.tlog

?????文件??????????2??2015-05-15?14:04??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\Debug\link-cvtres.read.1.tlog

?????文件??????????2??2015-05-15?14:04??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\Debug\link-cvtres.write.1.tlog

?????文件??????????2??2015-05-15?14:04??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\Debug\link-rc.read.1.tlog

?????文件??????????2??2015-05-15?14:04??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\Debug\link-rc.write.1.tlog

?????文件???????2538??2015-05-15?14:04??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\Debug\link.command.1.tlog

?????文件???????3188??2015-05-15?14:05??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\Debug\link.read.1.tlog

?????文件????????602??2015-05-15?14:05??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\Debug\link.write.1.tlog

?????文件????4967424??2015-05-15?14:04??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\Debug\MyWinMine.bsc

?????文件???????1136??2015-04-08?16:35??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\Debug\MyWinMine.Build.CppClean.log

?????文件?????496128??2015-05-15?14:04??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\Debug\MyWinMine.exe

?????文件????1020388??2015-05-15?14:04??無計時器和笑臉有掃雷結束\MyWinMine8無計時器和笑臉有掃雷結束\Debug\MyWinMine.ilk

............此處省略112個文件信息

評論

共有 條評論