資源簡(jiǎn)介
八數(shù)碼問(wèn)題的可視化實(shí)現(xiàn)八數(shù)碼問(wèn)題的可視化實(shí)現(xiàn)八數(shù)碼問(wèn)題的可視化實(shí)現(xiàn)八數(shù)碼問(wèn)題的可視化實(shí)現(xiàn)

代碼片段和文件信息
//?9Gird.cpp?:?Defines?the?entry?point?for?the?application.
//
//
//?Created?by?ZhaoHongWei?2004-12-6
//?Feel?free?to?use?this?code?in?any?way?you?want.
#include?“stdafx.h“
#include?“resource.h“
#include?“NineGird.h“
#define?MAX_LOADSTRING?100
//?Global?Variables:
HINSTANCE?hInst; //?current?instance
TCHAR?sztitle[MAX_LOADSTRING]; //?The?title?bar?text
TCHAR?szWindowClass[MAX_LOADSTRING]; //?The?title?bar?text
CNineGird?g_9Gird;
//?Foward?declarations?of?functions?included?in?this?code?module:
ATOM MyRegisterClass(HINSTANCE?hInstance);
BOOL InitInstance(HINSTANCE?int);
LRESULT?CALLBACK WndProc(HWND?UINT?WPARAM?LPARAM);
LRESULT?CALLBACK About(HWND?UINT?WPARAM?LPARAM);
int?APIENTRY?WinMain(HINSTANCE?hInstance
?????????????????????HINSTANCE?hPrevInstance
?????????????????????LPSTR?????lpCmdLine
?????????????????????int???????nCmdShow)
{
? //?TODO:?Place?code?here.
MSG?msg;
HACCEL?hAccelTable;
//?Initialize?global?strings
LoadString(hInstance?IDS_APP_title?sztitle?MAX_LOADSTRING);
LoadString(hInstance?IDC_MY9GIRD?szWindowClass?MAX_LOADSTRING);
MyRegisterClass(hInstance);
//?Perform?application?initialization:
if?(!InitInstance?(hInstance?nCmdShow))?
{
return?FALSE;
}
hAccelTable?=?LoadAccelerators(hInstance?(LPCTSTR)IDC_MY9GIRD);
//?Main?message?loop:
while?(GetMessage(&msg?NULL?0?0))?
{
if?(!TranslateAccelerator(msg.hwnd?hAccelTable?&msg))?
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
return?msg.wParam;
}
ATOM?MyRegisterClass(HINSTANCE?hInstance)
{
WNDCLASSEX?wcex;
wcex.cbSize?=?sizeof(WNDCLASSEX);?
wcex.style =?CS_HREDRAW?|?CS_VREDRAW;
wcex.lpfnWndProc =?(WNDPROC)WndProc;
wcex.cbClsExtra =?0;
wcex.cbWndExtra =?0;
wcex.hInstance =?hInstance;
wcex.hIcon =?LoadIcon(hInstance?(LPCTSTR)IDI_MY9GIRD);
wcex.hCursor =?LoadCursor(NULL?IDC_ARROW);
wcex.hbrBackground =?(HBRUSH)(COLOR_WINDOW+1);
wcex.lpszMenuName =?(LPCSTR)IDC_MY9GIRD;
wcex.lpszClassName =?szWindowClass;
wcex.hIconSm =?LoadIcon(wcex.hInstance?(LPCTSTR)IDI_SMALL);
return?RegisterClassEx(&wcex);
}
BOOL?InitInstance(HINSTANCE?hInstance?int?nCmdShow)
{
???HWND?hWnd;
???hInst?=?hInstance;?//?Store?instance?handle?in?our?global?variable
???hWnd?=?CreateWindow(szWindowClass?sztitle?WS_OVERLAPPEDWINDOW
??????CW_USEDEFAULT?0?CW_USEDEFAULT?0?NULL?NULL?hInstance?NULL);
???if?(!hWnd)
???{
??????return?FALSE;
???}
???SetWindowPos(hWnd??NULL??0??0??400??210??NULL?);
???ShowWindow(hWnd?nCmdShow);
???UpdateWindow(hWnd);
???return?TRUE;
}
LRESULT?CALLBACK?WndProc(HWND?hWnd?UINT?message?WPARAM?wParam?LPARAM?lParam)
{
int?wmId?wmEvent;
PAINTSTRUCT?ps;
HDC?hdc;
RECT?rt;
GetClientRect(hWnd?&rt);
switch?(message)?
{
case?WM_COMMAND:
wmId????=?LOWORD(wParam);?
wmEvent?=?HIWORD(wParam);?
//?Parse?the?menu?selections:
switch?(wmId)
?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????目錄??????????0??2005-07-08?00:23??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班
?????文件???????4644??2005-07-05?22:37??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\9Gird.aps
?????文件???????4478??2005-07-06?23:22??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\9Gird.cpp
?????文件???????4662??2004-12-05?22:37??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\9Gird.dsp
?????文件????????535??2004-12-04?15:13??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\9Gird.dsw
?????文件?????106496??2005-07-04?23:51??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\9Gird.exe
?????文件????????414??2004-12-06?11:59??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\9Gird.h
?????文件???????1078??2004-12-04?19:03??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\9Gird.ICO
?????文件??????60416??2005-07-06?23:22??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\9Gird.ncb
?????文件???????2944??2005-07-04?23:51??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\9Gird.rc
?????文件????????899??2005-07-04?23:49??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\9Gird.sln
????..A..H.??????8704??2005-07-06?23:22??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\9Gird.suo
?????文件???????6095??2005-07-04?23:49??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\9Gird.vcproj
?????文件??????10844??2004-12-06?11:59??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\NineGird.cpp
?????文件???????1359??2004-12-06?11:59??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\NineGird.h
?????文件???????2055??2004-12-04?12:34??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\ReadMe.txt
?????文件????????989??2005-07-04?23:51??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\resource.h
?????文件????????318??2004-12-05?12:31??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\SMALL.ICO
?????文件????????292??2004-12-04?12:34??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\StdAfx.cpp
?????文件????????977??2004-12-04?18:32??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\StdAfx.h
?????文件??????41984??2005-07-05?00:00??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\八數(shù)碼.doc
?????目錄??????????0??2005-07-08?00:23??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\Release
?????文件??????65536??2005-07-06?23:22??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\Release\9Gird.exe
?????目錄??????????0??2005-07-08?00:23??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\Debug
?????文件?????106496??2005-07-04?23:51??八數(shù)碼?王鴻鎮(zhèn)?200208014421?計(jì)算機(jī)4班\Debug\9Gird.exe
-----------?---------??----------?-----??----
???????????????432433????????????????????26
- 上一篇:Quartus8.0破解文件
- 下一篇:Power Designer 15
評(píng)論
共有 條評(píng)論