⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 maze.h

📁 迷宫算法.rar
💻 H
字号:
///////////////////////////////////////////////////////////////////////////////
//	Maze.h
//	Date: 2004-8-5 21:16
//	A moving ball.
//
///////////////////////////////////////////////////////////////////////////////

#if	!defined _MOVINGBALL_H
#define	_MOVINGBALL_H

#include <windows.h>

///////////////////////////////////////////////////////////////////////////////
// My define structure

typedef struct _tagNode {
	int	nRow;
	int	nColumn;
	struct _tagNode* next;
	struct _tagNode* previou;
} Node;

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

LRESULT CALLBACK WindowsProcedure( HWND hWnd, UINT uMessage, WPARAM wParam, LPARAM lParam );

class MovingBall {
	public:
		MovingBall( WNDPROC wndProc, const char* className, HINSTANCE hInstance );
		void Register()
		{
			::RegisterClass( & _class );
		}

	private:
		WNDCLASS _class;
};

class WinMaker {
	public:
		WinMaker() : _hWnd( 0 ) {}
		WinMaker( const char* szCaption, const char* className, HINSTANCE hInstance );
		void Show( int cmdShow )
		{
			::ShowWindow( _hWnd, cmdShow );
			::UpdateWindow( _hWnd );
		}

	protected:
		HWND _hWnd;
};

#endif	// _MOVINGBALL_H //

⌨️ 快捷键说明

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