#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>

extern int	DialogID ;
extern int	MJ_BASEOBJ ;
extern int	TIconID ;
extern int	TIconFunc() ;
extern int	MessageID ;
extern int	IconID ;
extern int	quitFunc() ;

#define ALIGN	4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)

/*	MMI_init 用データ	*/

/*	ヘッダ	*/

MMIINIT	initDataGUI = { "MmiInit",   4, 0 } ;

/* DialogID */

static MMIPACKET d001 = {	&DialogID,
							&MJ_BASEOBJ,
							&MJ_DIALOGL40,
							OFFSET(DIALOGL40),
							MS_NONE
						} ;
static DIALOGL40	d001d = {	MS_BTLEFTL40 | MS_EVMOSONL40,
							 282, 229, 358, 251, 8, 9, 8,
							MS_PANELL40 | MS_FRAMEL40,
							NULL,   0,   0
						} ;

/* TIconID */

static MMIPACKET d002 = {	&TIconID,
							&DialogID,
							&MJ_TICONL40,
							OFFSET(TICONL40),
							MS_NONE
						} ;
static TICONL40	d002d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 286, 233, 301, 248, 8, 9, 8,
							MS_NONEL40,
							TIconFunc,
							0x800b, 259, 260
						} ;

/* MessageID */

static MMIPACKET d003 = {	&MessageID,
							&DialogID,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d003d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 302, 235, 337, 246, 8, 9, 8,
							MS_OPAQUEL40,
							"Normal",
							   1,  12,  12,
							MS_OUTLINEL40,
							  -2,   0
						} ;

/* IconID */

static MMIPACKET d004 = {	&IconID,
							&DialogID,
							&MJ_ICONL40,
							0,
							MS_NONE
						} ;
static ICONL40	d004d = 	{	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 340, 233, 354, 247, 8, 9, 8,
							MS_UFRAMEL40 | MS_FRAMEL40,
							quitFunc,
							0x801d, 285
						} ;

