Description: #include<windows.h>
#include"resource.h"
#include<stdio.h>
LRESULT CALLBACK WndProc(HWND hwnd,UINT uMSG, WPARAM wParam,LPARAM lParam)
void DrawBitmap(HDC hdc,UINT ID, int x,int y,HWND hwnd)
void GameStart(HWND hwnd)
void GameOver(HWND hwnd)
void DrawTime(HDC hdc, int x, int y, int n, HWND hwnd)
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nShowCmd)
{
WNDCLASS wndclass
wndclass.cbClsExtra =0
wndclass.cbWndExtra =0
wndclass.hbrBackground =CreateSolidBrush(RGB(255,255,255))
wndclass.hCursor =LoadCursor(hInstance,MAKEINTRESOURCE(IDC_CURSOR2))
wndclass.hIcon =LoadIcon(hInstance,MAKEINTRESOURCE(IDI_ICON2))
wndclass.hInstance =hInstance
wndclass.lpfnWndProc =WndProc
wndclass.lpszClassName ="plane"
wndclass.lpszMenuName = NULL
wndclass.style = CS_VREDRAW||CS_HREDRAW
RegisterClass(&wndclass)
HWND hwnd
hwnd = CreateWindow("plane","game",WS_OVERLAPPEDWINDOW,0,0,800,600,NULL,NULL,hIns
To Search:
File list (Check if you may need any files):
game2\cursor1.cur
.....\game2.plg
.....\icon1.ico
.....\bitmap2.bmp
.....\20070722200523117.bmp
.....\ZLLK.ico
.....\cursor2.cur
.....\cat.bmp
.....\resource.h
.....\game2.dsw
.....\game2.ncb
.....\game2.dsp
.....\Script3.aps
.....\Script3.rc
.....\prj.cpp
.....\game2.opt
.....\Debug\game2.exe
.....\Debug
game2