#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	MessageID[2] ;
extern int	IconID ;
extern int	quitFunc() ;

#define ALIGN	4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)

/*	MMI_init 用データ	*/

/*	ヘッダ	*/

MMIINIT	initDataMGUI = { "MmiInit",   4, 0 } ;

/* DialogID */

static MMIPACKET d001 = {	&DialogID,
							&MJ_BASEOBJ,
							&MJ_DIALOGL40,
							OFFSET(DIALOGL40),
							MS_NONE
						} ;
static DIALOGL40	d001d = {	MS_BTLEFTL40 | MS_EVMOSONL40,
							 236, 220, 405, 261, 8, 9, 8,
							MS_PANELL40 | MS_FRAMEL40,
							NULL,   0,   0
						} ;

/* MessageID[0] */

static MMIPACKET d002 = {	&MessageID[0],
							&DialogID,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d002d = 	{	MS_DSPONLYL40,
							 243, 243, 398, 254, 8, 1,15,
							MS_OPAQUEL40,
							"888,888,888 -> 888,888,888",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* MessageID[1] */

static MMIPACKET d003 = {	&MessageID[1],
							&DialogID,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d003d = 	{	MS_DSPONLYL40,
							 285, 227, 356, 238, 8, 1,15,
							MS_OPAQUEL40,
							"+888,888,888",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* IconID */

static MMIPACKET d004 = {	&IconID,
							&DialogID,
							&MJ_ICONL40,
							0,
							MS_NONE
						} ;
static ICONL40	d004d = 	{	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
							 242, 225, 256, 239, 8, 9, 8,
							MS_UFRAMEL40 | MS_FRAMEL40,
							quitFunc,
							0x801d, 285
						} ;

