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

  • 大小: 1.55M
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2023-09-14
  • 語言: 其他
  • 標簽: 其他??

資源簡介

拼圖游戲(c源代碼附程序).zip

資源截圖

代碼片段和文件信息

//?Puzzle.cpp?:?定義應用程序的入口點。
//

#include?“stdafx.h“
#include?“Puzzle.h“
#include?“PuzzleMain.h“

CPuzzleMain?g_PuzzleMain;//保存游戲實例

#define?MAX_LOADSTRING?100

//?全局變量:
HINSTANCE?hInst; //?當前實例
TCHAR?sztitle[MAX_LOADSTRING]; //?標題欄文本
TCHAR?szWindowClass[MAX_LOADSTRING]; //?主窗口類名

//?此代碼模塊中包含的函數的前向聲明:
ATOM MyRegisterClass(HINSTANCE?hInstance);
BOOL InitInstance(HINSTANCE?int);
LRESULT?CALLBACK WndProc(HWND?UINT?WPARAM?LPARAM);
INT_PTR?CALLBACK About(HWND?UINT?WPARAM?LPARAM);

int?APIENTRY?_tWinMain(HINSTANCE?hInstance
?????????????????????HINSTANCE?hPrevInstance
?????????????????????LPTSTR????lpCmdLine
?????????????????????int???????nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);

? //?TODO:?在此放置代碼。
MSG?msg;
HACCEL?hAccelTable;

//?初始化全局字符串
LoadString(hInstance?IDS_APP_title?sztitle?MAX_LOADSTRING);
LoadString(hInstance?IDC_PUZZLE?szWindowClass?MAX_LOADSTRING);
MyRegisterClass(hInstance);

//?執行應用程序初始化:
if?(!InitInstance?(hInstance?nCmdShow))
{
return?FALSE;
}

hAccelTable?=?LoadAccelerators(hInstance?MAKEINTRESOURCE(IDC_PUZZLE));

//?主消息循環:
while?(GetMessage(&msg?NULL?0?0))
{
if?(!TranslateAccelerator(msg.hwnd?hAccelTable?&msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}

return?(int)?msg.wParam;
}



//
//??函數:?MyRegisterClass()
//
//??目的:?注冊窗口類。
//
//??注釋:
//
//????僅當希望
//????此代碼與添加到?Windows?95?中的“RegisterClassEx”
//????函數之前的?Win32?系統兼容時,才需要此函數及其用法。調用此函數十分重要,
//????這樣應用程序就可以獲得關聯的
//????“格式正確的”小圖標。
//
ATOM?MyRegisterClass(HINSTANCE?hInstance)
{
WNDCLASSEX?wcex;

wcex.cbSize?=?sizeof(WNDCLASSEX);

wcex.style =?CS_HREDRAW?|?CS_VREDRAW;
wcex.lpfnWndProc =?WndProc;
wcex.cbClsExtra =?0;
wcex.cbWndExtra =?0;
wcex.hInstance =?hInstance;
wcex.hIcon =?LoadIcon(hInstance?MAKEINTRESOURCE(IDI_PUZZLE));
wcex.hCursor =?LoadCursor(NULL?IDC_ARROW);
wcex.hbrBackground =?(HBRUSH)(COLOR_WINDOW+1);
wcex.lpszMenuName =?MAKEINTRESOURCE(IDC_PUZZLE);
wcex.lpszClassName =?szWindowClass;
wcex.hIconSm =?LoadIcon(wcex.hInstance?MAKEINTRESOURCE(IDI_SMALL));

return?RegisterClassEx(&wcex);
}

//
//???函數:?InitInstance(HINSTANCE?int)
//
//???目的:?保存實例句柄并創建主窗口
//
//???注釋:
//
//????????在此函數中,我們在全局變量中保存實例句柄并
//????????創建和顯示主程序窗口。
//
BOOL?InitInstance(HINSTANCE?hInstance?int?nCmdShow)
{
???HWND?hWnd;

???hInst?=?hInstance;?//?將實例句柄存儲在全局變量中

???hWnd?=?CreateWindow(szWindowClass?sztitle?
WS_OVERLAPPEDWINDOW?&?~WS_SIZEBOX?&?~WS_MAXIMIZEBOX
??????CW_USEDEFAULT?0?800?600?NULL?NULL?hInstance?NULL);

???if?(!hWnd)
???{
??????return?FALSE;
???}

???ShowWindow(hWnd?nCmdShow);
???UpdateWindow(hWnd);

???g_PuzzleMain.InitMain(hWnd);

???return?TRUE;
}

//
//??函數:?WndProc(HWND?UINT?WPARAM?LPARAM)
//
//??目的:?處理主窗口的消息。
//
//??WM_COMMAND -?處理應用程序菜單
//??WM_PAINT -?繪制主窗口
//??WM_DESTROY -?發送退出消息并返回
//

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-11-26?22:03??拼圖游戲(c++源代碼附程序)\
?????文件????????4918??2013-05-29?06:55??拼圖游戲(c++源代碼附程序)\Puzzle.cpp
?????文件???????62464??2013-05-29?07:54??拼圖游戲(c++源代碼附程序)\Puzzle.exe
?????文件??????????39??2013-05-28?17:33??拼圖游戲(c++源代碼附程序)\Puzzle.h
?????文件????????4266??2013-05-29?07:40??拼圖游戲(c++源代碼附程序)\PuzzleLogic.cpp
?????文件?????????851??2013-05-29?07:23??拼圖游戲(c++源代碼附程序)\PuzzleLogic.h
?????文件????????1450??2013-05-29?07:06??拼圖游戲(c++源代碼附程序)\PuzzleMain.cpp
?????文件?????????575??2013-05-29?06:23??拼圖游戲(c++源代碼附程序)\PuzzleMain.h
?????文件????????1670??2013-05-29?06:46??拼圖游戲(c++源代碼附程序)\PuzzleSound.cpp
?????文件?????????333??2013-05-28?23:42??拼圖游戲(c++源代碼附程序)\PuzzleSound.h
?????文件????????6841??2013-05-29?07:40??拼圖游戲(c++源代碼附程序)\PuzzleView.cpp
?????文件????????1478??2013-05-29?07:40??拼圖游戲(c++源代碼附程序)\PuzzleView.h
?????目錄???????????0??2013-05-29?17:30??拼圖游戲(c++源代碼附程序)\res\
?????文件?????1440056??2014-11-26?21:48??拼圖游戲(c++源代碼附程序)\res\background01.bmp
?????文件?????1451612??2014-11-27?21:11??拼圖游戲(c++源代碼附程序)\res\backmusic05.wav
?????文件????????8422??2013-05-29?06:13??拼圖游戲(c++源代碼附程序)\res\click02.wav
?????文件??????320056??2014-11-26?22:09??拼圖游戲(c++源代碼附程序)\res\pintu01.bmp
?????文件???????80056??2014-11-26?22:09??拼圖游戲(c++源代碼附程序)\res\smallpintu01.bmp
?????文件????????2256??2013-05-29?06:29??拼圖游戲(c++源代碼附程序)\resource.h
?????文件?????????211??2013-05-28?17:33??拼圖游戲(c++源代碼附程序)\stdafx.cpp
?????文件?????????420??2013-05-28?17:33??拼圖游戲(c++源代碼附程序)\stdafx.h
?????文件?????????236??2013-05-28?17:33??拼圖游戲(c++源代碼附程序)\targetver.h
?????文件??????????44??2014-11-26?22:06??拼圖游戲(c++源代碼附程序)\游戲說明.txt

評論

共有 條評論