📄 hanoi.h
字号:
//////////////////////////////////////////////////////////////////////
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -