資源簡介
win ce 5.0下推箱子游戲源代碼,

代碼片段和文件信息
//?boxman.cpp?:?定義應用程序的入口點。
//
#include?“stdafx.h“
#include?“boxman.h“
#include?
#include?
#include?
#define?MAX_LOADSTRING?100
//?全局變量:
HINSTANCE g_hInst; //?當前實例
HWND g_hWndCommandBar; //?命令欄句柄
//?此代碼模塊中包含的函數的前向聲明:
ATOM MyRegisterClass(HINSTANCE?LPTSTR);
BOOL InitInstance(HINSTANCE?int);
LRESULT?CALLBACK WndProc(HWND?UINT?WPARAM?LPARAM);
INT_PTR?CALLBACK About(HWND?UINT?WPARAM?LPARAM);
INT_PTR?CALLBACK AboutBOXABOUT(HWND?UINT?WPARAM?LPARAM);
int?WINAPI?WinMain(HINSTANCE?hInstance
???????????????????HINSTANCE?hPrevInstance
???????????????????LPTSTR????lpCmdLine
???????????????????int???????nCmdShow)
{
MSG?msg;
CBoxmanView();
//?執行應用程序初始化:
if?(!InitInstance(hInstance?nCmdShow))?
{
return?FALSE;
}
HACCEL?hAccelTable;
hAccelTable?=?LoadAccelerators(hInstance?MAKEINTRESOURCE(IDC_BOXMAN));
//?主消息循環:
while?(GetMessage(&msg?NULL?0?0))?
{
if?(!TranslateAccelerator(msg.hwnd?hAccelTable?&msg))?
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
return?(int)?msg.wParam;
}
//
//??函數:?MyRegisterClass()
//
//??目的:?注冊窗口類。
//
//??注釋:
//
ATOM?MyRegisterClass(HINSTANCE?hInstance?LPTSTR?szWindowClass)
{
WNDCLASS?wc;
wc.style?????????=?CS_HREDRAW?|?CS_VREDRAW;
wc.lpfnWndProc???=?WndProc;
wc.cbClsExtra????=?0;
wc.cbWndExtra????=?0;
wc.hInstance?????=?hInstance;
wc.hIcon?????????=?LoadIcon(hInstance?MAKEINTRESOURCE(IDI_BOXMAN));
wc.hCursor???????=?0;
wc.hbrBackground?=?(HBRUSH)?GetStockobject(WHITE_BRUSH);
wc.lpszMenuName??=?0;
wc.lpszClassName?=?szWindowClass;
return?RegisterClass(&wc);
}
//
//???函數:?InitInstance(HINSTANCE?int)
//
//???目的:?保存實例句柄并創建主窗口
//
//???注釋:
//
//????????在此函數中,我們在全局變量中保存實例句柄并
//????????創建和顯示主程序窗口。
//
BOOL?InitInstance(HINSTANCE?hInstance?int?nCmdShow)
{
????HWND?hWnd;
????TCHAR?sztitle[MAX_LOADSTRING]; //?標題欄文本
????TCHAR?szWindowClass[MAX_LOADSTRING]; //?主窗口類名
????g_hInst?=?hInstance;?//?將實例句柄存儲在全局變量中
????LoadString(hInstance?IDS_APP_title?sztitle?MAX_LOADSTRING);?
????LoadString(hInstance?IDC_BOXMAN?szWindowClass?MAX_LOADSTRING);
????if?(!MyRegisterClass(hInstance?szWindowClass))
????{
???? return?FALSE;
????}
????hWnd?=?CreateWindow(szWindowClass?sztitle?WS_VISIBLE
????????CW_USEDEFAULT?CW_USEDEFAULT?CW_USEDEFAULT?CW_USEDEFAULT?NULL?NULL?hInstance?NULL);
????if?(!hWnd)
????{
????????return?FALSE;
????}
????ShowWindow(hWnd?nCmdShow);
????UpdateWindow(hWnd);
????if?(g_hWndCommandBar)
????{
????????CommandBar_Show(g_hWndCommandBar?TRUE);
????}
????return?TRUE;
}
//
//??函數:?WndProc(HWND?UINT?WPARAM?LPARAM)
//
//??目的:?處理主窗口的消息。
//
//??WM_COMMAND -?處理應用程序菜單
//??WM_PAINT -?繪制主窗口
//??WM_DESTROY -?發送退出消息并返回
//
//
LRESULT?CALLBACK?WndProc(HWND?hWnd?UINT?message?WPARAM?wParam?LPARAM?lParam)
{
????int?wmId?wmEvent;
????PAINTSTRUCT?ps;
????HDC?hdc;
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????27443??2009-09-04?16:42??boxman_9.10\boxman\boxman.cpp
?????文件???????1154??2009-09-04?16:23??boxman_9.10\boxman\boxman.h
?????文件??????23558??2005-12-13?20:33??boxman_9.10\boxman\boxman.ico
?????文件???????4373??2009-09-04?17:28??boxman_9.10\boxman\boxman.rc
?????文件????????281??2009-09-04?09:01??boxman_9.10\boxman\boxman.rc2
?????文件???????5904??2009-09-04?09:01??boxman_9.10\boxman\boxman.vcproj
?????文件???????1761??2009-09-04?16:49??boxman_9.10\boxman\boxman.vcproj.ED馮小衛.ed.user
?????文件??????10834??2009-09-04?13:45??boxman_9.10\boxman\map.txt
?????文件???????1807??2009-09-04?09:01??boxman_9.10\boxman\ReadMe.txt
?????文件????????712??2009-09-04?17:28??boxman_9.10\boxman\Resource.h
?????文件????????211??2009-09-04?09:01??boxman_9.10\boxman\stdafx.cpp
?????文件???????1242??2009-09-04?09:01??boxman_9.10\boxman\stdafx.h
?????文件??????43520??2009-09-04?16:42??boxman_9.10\boxman\WindowsCE?5.0?(ARMV4I)\Debug\boxman.exe
?????文件??????41976??2009-09-04?16:42??boxman_9.10\boxman\WindowsCE?5.0?(ARMV4I)\Debug\boxman.obj
?????文件????3538944??2009-09-04?16:23??boxman_9.10\boxman\WindowsCE?5.0?(ARMV4I)\Debug\boxman.pch
?????文件?????445440??2009-09-04?16:42??boxman_9.10\boxman\WindowsCE?5.0?(ARMV4I)\Debug\boxman.pdb
?????文件??????24672??2009-09-04?16:42??boxman_9.10\boxman\WindowsCE?5.0?(ARMV4I)\Debug\boxman.res
?????文件???????5946??2009-09-04?16:42??boxman_9.10\boxman\WindowsCE?5.0?(ARMV4I)\Debug\BuildLog.htm
?????文件??????10825??2005-06-02?11:15??boxman_9.10\boxman\WindowsCE?5.0?(ARMV4I)\Debug\map.txt
?????文件??????84339??2009-09-04?16:23??boxman_9.10\boxman\WindowsCE?5.0?(ARMV4I)\Debug\stdafx.obj
?????文件?????289792??2009-09-04?16:42??boxman_9.10\boxman\WindowsCE?5.0?(ARMV4I)\Debug\vc80.idb
?????文件?????339968??2009-09-04?16:42??boxman_9.10\boxman\WindowsCE?5.0?(ARMV4I)\Debug\vc80.pdb
?????文件??????10825??2005-06-02?11:15??boxman_9.10\boxman\WindowsCE?5.0?(ARMV4I)\map.txt
?????文件????7220224??2009-09-04?16:49??boxman_9.10\boxman.ncb
?????文件???????1313??2009-09-04?09:01??boxman_9.10\boxman.sln
?????文件??????74752??2009-09-04?16:49??boxman_9.10\boxman.suo
?????文件??????10825??2005-06-02?11:15??boxman_9.10\map.txt
?????目錄??????????0??2009-09-04?16:49??boxman_9.10\boxman\WindowsCE?5.0?(ARMV4I)\Debug
?????目錄??????????0??2009-09-04?16:49??boxman_9.10\boxman\WindowsCE?5.0?(ARMV4I)
?????目錄??????????0??2009-09-04?16:49??boxman_9.10\boxman
............此處省略4個文件信息
- 上一篇:GPS、BDS組合偽距單點定位
- 下一篇:表白小程序
評論
共有 條評論