#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>

extern int	WindowId ;
extern int	WindowFunc() ;
extern int	ScrollBarId ;
extern int	vscrollFunc() ;
extern int	WindowTextId ;
extern int	textFunc() ;

#define ALIGN	4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)

/*	MMI_init 用データ	*/

/*	ヘッダ	*/

MMIINIT	initDataWINDOW = { "MmiInit",   3, 0 } ;

/* WindowId */

static MMIPACKET d001 = {	&WindowId,
							NULL,
							&MJ_WINDOWL40,
							OFFSET(WINDOWL40),
							MS_NONE
						} ;
static WINDOWL40	d001d = {	MS_BTLEFTL40 | MS_EVMOSONL40 | MS_TITLEL40 | MS_CLOSEL40 | MS_RESIZEL40,
							  37,  68, 539, 372, 0,15, 9,
							MS_SRECTL40 | MS_FRAMEL40,
							NULL,   0,   0,
							   2,  18, 389, 283,
							 128,  96, 640, 480,
							WindowFunc,
							"         ",
						} ;

/* ScrollBarId */

static MMIPACKET d002 = {	&ScrollBarId,
							&WindowId,
							&MJ_SCRLL40,
							OFFSET(SCRLL40),
							MS_NONE
						} ;
static SCRLL40	d002d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40,
							 521,  84, 536, 354, 0,15, 7,
							MS_PANELL40 | MS_FRAMEL40,
							vscrollFunc,
							   0,   0, 255, 256,  20,
							 263, 264
						} ;

/* WindowTextId */

static MMIPACKET d003 = {	&WindowTextId,
							&WindowId,
							&MJ_TEXTL40,
							OFFSET(TEXTL40),
							MS_NONE
						} ;
static TEXTL40	d003d = 	{	MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40,
							  39,  86, 520, 368,12, 8,15,
							MS_NONEL40,
							textFunc,
							   0,   0,   0,   0,
							   0,   0,   0,   0,   0,
							      -1,   0,   0,
							   0,   0,   0,   0,
							   0,
							   0,   0,   0,   0,
							   1,  12,  12,   0,   0,
							   0,   0,   0,   0,   0,   0,   0,
							   0,   0,   0,   0,
							   4
						} ;

