home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Phoenix Heaven Sunny 2
/
APPARE2.BIN
/
oh_towns
/
art2
/
src.lzh
/
ZALERT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1995-06-17
|
9KB
|
411 lines
#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
extern int idAlertDlg ;
extern int idAlertTitleMsg ;
extern int idAlertOkDBtn ;
extern int AlertOkDBtnFunc() ;
extern int idAlertMsg[3] ;
extern int idCheckAlertDlg ;
extern int idCheckAlertTitleMsg ;
extern int idCheckAlertMsg[3] ;
extern int idCheckAlertOkDBtn ;
extern int CheckAlertOkDBtnFunc() ;
extern int idCheckAlertOkMsg ;
extern int idCheckAlertCancelDBtn ;
extern int CheckAlertCancelDBtnFunc() ;
extern int idCheckAlertCancelMsg ;
extern int idBigAlertDlg ;
extern int idBigAlertTitleMsg ;
extern int idBigAlertOkDBtn ;
extern int BigAlertOkDBtnFunc() ;
extern int idBigAlertMsg[3] ;
#define ALIGN 4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
/* MMI_init 用データ */
/* ヘッダ */
MMIINIT initDataZALERT = { "MmiInit", 23, 0 } ;
/* idAlertDlg */
static MMIPACKET d001 = { &idAlertDlg,
NULL,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
MS_NONE
} ;
static DIALOGL40 d001d = { MS_BTLEFTL40 | MS_EVMOSONL40,
20, 4, 259, 123, 8, 6, 8,
MS_ALERTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
NULL, 500, 0
} ;
/* idAlertTitleMsg */
static MMIPACKET d002 = { &idAlertTitleMsg,
&idAlertDlg,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d002d = { MS_CENTERL40 | MS_DSPONLYL40,
40, 12, 239, 31, 8, 6, 8,
MS_NONEL40,
"タイトル文字列",
1, 12, 12,
MS_BOLDL40,
0, 0
} ;
/* idAlertOkDBtn */
static MMIPACKET d003 = { &idAlertOkDBtn,
&idAlertDlg,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d003d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
108, 90, 171, 109, 8, 6, 8,
MS_UFRAMEL40 | MS_FRAMEL40,
AlertOkDBtnFunc,
0x0000
} ;
/* NULL */
static MMIPACKET d004 = { NULL,
&idAlertDlg,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d004d = { MS_CENTERL40 | MS_DSPONLYL40,
112, 94, 167, 105, 8, 6, 8,
MS_NONEL40,
"確認",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* idAlertMsg[0] */
static MMIPACKET d005 = { &idAlertMsg[0],
&idAlertDlg,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d005d = { MS_CENTERL40 | MS_DSPONLYL40,
28, 36, 251, 51, 8, 6, 8,
MS_NONEL40,
"メッセージ",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* idAlertMsg[1] */
static MMIPACKET d006 = { &idAlertMsg[1],
&idAlertDlg,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d006d = { MS_CENTERL40 | MS_DSPONLYL40,
28, 52, 251, 67, 8, 6, 8,
MS_NONEL40,
"メッセージ",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* idAlertMsg[2] */
static MMIPACKET d007 = { &idAlertMsg[2],
&idAlertDlg,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d007d = { MS_CENTERL40 | MS_DSPONLYL40,
28, 68, 251, 83, 8, 6, 8,
MS_NONEL40,
"メッセージ",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* idCheckAlertDlg */
static MMIPACKET d008 = { &idCheckAlertDlg,
NULL,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
MS_NONE
} ;
static DIALOGL40 d008d = { MS_BTLEFTL40 | MS_EVMOSONL40,
2, 128, 241, 247, 8, 6, 8,
MS_ALERTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
NULL, 500, 0
} ;
/* idCheckAlertTitleMsg */
static MMIPACKET d009 = { &idCheckAlertTitleMsg,
&idCheckAlertDlg,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d009d = { MS_CENTERL40 | MS_DSPONLYL40,
22, 136, 221, 155, 8, 6, 8,
MS_NONEL40,
"タイトル文字列",
1, 12, 12,
MS_BOLDL40,
0, 0
} ;
/* idCheckAlertMsg[0] */
static MMIPACKET d010 = { &idCheckAlertMsg[0],
&idCheckAlertDlg,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d010d = { MS_CENTERL40 | MS_DSPONLYL40,
10, 160, 233, 175, 8, 6, 8,
MS_NONEL40,
"メッセージ",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* idCheckAlertOkDBtn */
static MMIPACKET d011 = { &idCheckAlertOkDBtn,
&idCheckAlertDlg,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d011d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
46, 214, 109, 233, 8, 6, 8,
MS_UFRAMEL40 | MS_FRAMEL40,
CheckAlertOkDBtnFunc,
0x0000
} ;
/* idCheckAlertOkMsg */
static MMIPACKET d012 = { &idCheckAlertOkMsg,
&idCheckAlertDlg,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d012d = { MS_CENTERL40 | MS_DSPONLYL40,
50, 218, 105, 229, 8, 6, 8,
MS_NONEL40,
"確認",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* idCheckAlertCancelDBtn */
static MMIPACKET d013 = { &idCheckAlertCancelDBtn,
&idCheckAlertDlg,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d013d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
134, 214, 197, 233, 8, 6, 8,
MS_UFRAMEL40 | MS_FRAMEL40,
CheckAlertCancelDBtnFunc,
0x0000
} ;
/* idCheckAlertCancelMsg */
static MMIPACKET d014 = { &idCheckAlertCancelMsg,
&idCheckAlertDlg,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d014d = { MS_CENTERL40 | MS_DSPONLYL40,
138, 218, 193, 229, 8, 6, 8,
MS_NONEL40,
"取消",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* idCheckAlertMsg[1] */
static MMIPACKET d015 = { &idCheckAlertMsg[1],
&idCheckAlertDlg,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d015d = { MS_CENTERL40 | MS_DSPONLYL40,
10, 176, 233, 191, 8, 6, 8,
MS_NONEL40,
"メッセージ",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* idCheckAlertMsg[2] */
static MMIPACKET d016 = { &idCheckAlertMsg[2],
&idCheckAlertDlg,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d016d = { MS_CENTERL40 | MS_DSPONLYL40,
10, 192, 233, 207, 8, 6, 8,
MS_NONEL40,
"メッセージ",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* idBigAlertDlg */
static MMIPACKET d017 = { &idBigAlertDlg,
NULL,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
MS_NONE
} ;
static DIALOGL40 d017d = { MS_BTLEFTL40 | MS_EVMOSONL40,
40, 250, 399, 369, 8, 6, 8,
MS_ALERTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
NULL, 500, 0
} ;
/* idBigAlertTitleMsg */
static MMIPACKET d018 = { &idBigAlertTitleMsg,
&idBigAlertDlg,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d018d = { MS_CENTERL40 | MS_DSPONLYL40,
60, 258, 379, 277, 8, 6, 8,
MS_NONEL40,
"タイトル文字列",
1, 12, 12,
MS_BOLDL40,
0, 0
} ;
/* idBigAlertOkDBtn */
static MMIPACKET d019 = { &idBigAlertOkDBtn,
&idBigAlertDlg,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d019d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
188, 336, 251, 355, 8, 6, 8,
MS_UFRAMEL40 | MS_FRAMEL40,
BigAlertOkDBtnFunc,
0x0000
} ;
/* NULL */
static MMIPACKET d020 = { NULL,
&idBigAlertDlg,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d020d = { MS_CENTERL40 | MS_DSPONLYL40,
192, 340, 247, 351, 8, 6, 8,
MS_NONEL40,
"確認",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* idBigAlertMsg[0] */
static MMIPACKET d021 = { &idBigAlertMsg[0],
&idBigAlertDlg,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d021d = { MS_CENTERL40 | MS_DSPONLYL40,
48, 282, 391, 297, 8, 6, 8,
MS_NONEL40,
"メッセージ",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* idBigAlertMsg[1] */
static MMIPACKET d022 = { &idBigAlertMsg[1],
&idBigAlertDlg,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d022d = { MS_CENTERL40 | MS_DSPONLYL40,
48, 298, 391, 313, 8, 6, 8,
MS_NONEL40,
"メッセージ",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* idBigAlertMsg[2] */
static MMIPACKET d023 = { &idBigAlertMsg[2],
&idBigAlertDlg,
&MJ_MSGL40,
0,
MS_NONE
} ;
static MSGL40 d023d = { MS_CENTERL40 | MS_DSPONLYL40,
48, 314, 391, 329, 8, 6, 8,
MS_NONEL40,
"メッセージ",
1, 12, 12,
MS_NONEL40,
0, 0
} ;