hanoi.h

来自「汉诺塔的VC演示程序」· C头文件 代码 · 共 47 行

H
47
字号

//////////////////////////////////////////////////////////////////////

LRESULT CALLBACK MainWndProc(HWND, UINT, WPARAM, LPARAM);

//////////////////////////////////////////////////////////////////////

BOOL InitApplication(HINSTANCE);
BOOL InitInstance(HINSTANCE, int);

//////////////////////////////////////////////////////////////////////

char* szTitle = "Hanoi";	//窗口标题
char* szMainWndClass = "MainWndClass_Mine";		//窗口类名

//////////////////////////////////////////////////////////////////////

LONG OnCommand    (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
LONG OnCreate     (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
LONG OnDestroy    (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
LONG OnPaint      (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
LONG OnLButtonDown(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
LONG OnRButtonDown(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);

LONG OnHelp		  (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
LONG OnQuit	      (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
LONG OnAbout      (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
LONG OnStart	  (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);

//////////////////////////////////////////////////////////////////////

class CList;
void move(CList* a, int n, CList* b, HWND hWnd);
void hanoi(int n, CList* pList_x, CList* pList_y, CList* pList_z, HWND hWnd);

//////////////////////////////////////////////////////////////////////

HBITMAP hBmp1,hBmp2,hBmp3,hBmp4,hBmp5,hBmp6,hBmp7,hBmp8,hBmp9,
		hBmp10,hBmp11,hBmp12,hBmp13,hBmp14,hBmp15;

//////////////////////////////////////////////////////////////////////

DWORD ThreadHanoi(PVOID param);
DWORD m_dwThread;

//////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?