#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>

extern int	mazeWin ;
extern int	ManageMazeWindow() ;
extern int	mazeWinBarV ;
extern int	SlideMazeWinV() ;
extern int	mazeWinBarH ;
extern int	SlideMazeWinH() ;

#define ALIGN	4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)

/*	MMI_init 用データ	*/

/*	ヘッダ	*/

MMIINIT	initDataMZWIN = { "MmiInit",   3, 0 } ;

/* mazeWin */

static MMIPACKET d001 = {	&mazeWin,
							NULL,
							&MJ_WINDOWL40,
							OFFSET(WINDOWL40),
							MS_NONE
						} ;
static WINDOWL40	d001d = {	MS_BTLEFTL40 | MS_EVMOSONL40 | MS_TITLEL40 | MS_RESIZEL40,
							  32,  32, 449, 465, 8,15, 1,
							MS_SRECTL40 | MS_FRAMEL40,
							NULL,   0,   0,
							   1,  17, 400, 400,
							  96,  96, 640, 640,
							ManageMazeWindow,
							"迷路",
						} ;

/* mazeWinBarV */

static MMIPACKET d002 = {	&mazeWinBarV,
							&mazeWin,
							&MJ_SCRLL40,
							OFFSET(SCRLL40),
							MS_NONE
						} ;
static SCRLL40	d002d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_FIXEDL40,
							 432,  49, 447, 447, 8,15, 7,
							MS_PANELL40 | MS_FRAMEL40,
							SlideMazeWinV,
							   0,   0, 240, 150,  16,
							 263, 264
						} ;

/* mazeWinBarH */

static MMIPACKET d003 = {	&mazeWinBarH,
							&mazeWin,
							&MJ_SCRLL40,
							0,
							MS_NONE
						} ;
static SCRLL40	d003d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_FIXEDL40 | MS_HORIL40,
							  32, 448, 431, 463, 8,15, 7,
							MS_PANELL40 | MS_FRAMEL40,
							SlideMazeWinH,
							   0,   0, 240, 150,  16,
							 265, 266
						} ;

