maze.h

来自「迷宫算法编程实践。这是比较基础的算法」· C头文件 代码 · 共 53 行

H
53
字号
///////////////////////////////////////////////////////////////////////////////
//	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 + =
减小字号Ctrl + -
显示快捷键?