win ce 5.0下推箱子游戏源代码


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.10oxmanoxman.cpp

     文件       1154  2009-09-04 16:23  boxman_9.10oxmanoxman.h

     文件      23558  2005-12-13 20:33  boxman_9.10oxmanoxman.ico

     文件       4373  2009-09-04 17:28  boxman_9.10oxmanoxman.rc

     文件        281  2009-09-04 09:01  boxman_9.10oxmanoxman.rc2

     文件       5904  2009-09-04 09:01  boxman_9.10oxmanoxman.vcproj

     文件       1761  2009-09-04 16:49  boxman_9.10oxmanoxman.vcproj.ED冯小卫.ed.user

     文件      10834  2009-09-04 13:45  boxman_9.10oxmanmap.txt

     文件       1807  2009-09-04 09:01  boxman_9.10oxmanReadMe.txt

     文件        712  2009-09-04 17:28  boxman_9.10oxmanResource.h

     文件        211  2009-09-04 09:01  boxman_9.10oxmanstdafx.cpp

     文件       1242  2009-09-04 09:01  boxman_9.10oxmanstdafx.h

     文件      43520  2009-09-04 16:42  boxman_9.10oxmanWindowsCE 5.0 (ARMV4I)Debugoxman.exe

     文件      41976  2009-09-04 16:42  boxman_9.10oxmanWindowsCE 5.0 (ARMV4I)Debugoxman.obj

     文件    3538944  2009-09-04 16:23  boxman_9.10oxmanWindowsCE 5.0 (ARMV4I)Debugoxman.pch

     文件     445440  2009-09-04 16:42  boxman_9.10oxmanWindowsCE 5.0 (ARMV4I)Debugoxman.pdb

     文件      24672  2009-09-04 16:42  boxman_9.10oxmanWindowsCE 5.0 (ARMV4I)Debugoxman.res

     文件       5946  2009-09-04 16:42  boxman_9.10oxmanWindowsCE 5.0 (ARMV4I)DebugBuildLog.htm

     文件      10825  2005-06-02 11:15  boxman_9.10oxmanWindowsCE 5.0 (ARMV4I)Debugmap.txt

     文件      84339  2009-09-04 16:23  boxman_9.10oxmanWindowsCE 5.0 (ARMV4I)Debugstdafx.obj

     文件     289792  2009-09-04 16:42  boxman_9.10oxmanWindowsCE 5.0 (ARMV4I)Debugvc80.idb

     文件     339968  2009-09-04 16:42  boxman_9.10oxmanWindowsCE 5.0 (ARMV4I)Debugvc80.pdb

     文件      10825  2005-06-02 11:15  boxman_9.10oxmanWindowsCE 5.0 (ARMV4I)map.txt

     文件    7220224  2009-09-04 16:49  boxman_9.10oxman.ncb

     文件       1313  2009-09-04 09:01  boxman_9.10oxman.sln

     文件      74752  2009-09-04 16:49  boxman_9.10oxman.suo

     文件      10825  2005-06-02 11:15  boxman_9.10map.txt

     目录          0  2009-09-04 16:49  boxman_9.10oxmanWindowsCE 5.0 (ARMV4I)Debug

     目录          0  2009-09-04 16:49  boxman_9.10oxmanWindowsCE 5.0 (ARMV4I)

     目录          0  2009-09-04 16:49  boxman_9.10oxman

............此处省略4个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)