home *** CD-ROM | disk | FTP | other *** search
/ Phoenix Heaven Sunny 2 / APPARE2.BIN / oh_towns / art2 / src.lzh / ZIMGWIN.C < prev    next >
C/C++ Source or Header  |  1995-06-19  |  3KB  |  124 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    idImageWin ;
  9. extern int    imageWINfunc() ;
  10. extern int    idImageHSBar ;
  11. extern int    imageSBARfunc() ;
  12. extern int    idImageVSBar ;
  13. extern int    idImageTitleDBtn ;
  14. extern int    idImageTitleMsg ;
  15. extern int    idImageEraseDBtn ;
  16. extern int    ImageEraseDBtnProc() ;
  17.  
  18. #define ALIGN    4
  19. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  20.  
  21. /*    MMI_init 用データ    */
  22.  
  23. /*    ヘッダ    */
  24.  
  25. MMIINIT    initDataZIMGWIN = { "MmiInit",   6, 0 } ;
  26.  
  27. /* idImageWin */
  28.  
  29. static MMIPACKET d001 = {    &idImageWin,
  30.                             NULL,
  31.                             &MJ_WINDOWL40,
  32.                             OFFSET(WINDOWL40),
  33.                             MS_NONE
  34.                         } ;
  35. static WINDOWL40    d001d = {    MS_BTRIGHTL40 | MS_BTLEFTL40 | MS_EVDRAGL40 | MS_EVMOVEL40 | MS_EVMOSONL40 | MS_HIDEL40 | MS_RESIZEL40,
  36.                                0,  20, 511, 479, 8, 6, 8,
  37.                             MS_BFRAMEL40 | MS_FRAMEL40,
  38.                             NULL,   0,   0,
  39.                                1,  17, 100, 100,
  40.                               64,  64, 640, 480,
  41.                             imageWINfunc,
  42.                             NULL,
  43.                         } ;
  44.  
  45. /* idImageHSBar */
  46.  
  47. static MMIPACKET d002 = {    &idImageHSBar,
  48.                             &idImageWin,
  49.                             &MJ_SCRLL40,
  50.                             OFFSET(SCRLL40),
  51.                             MS_NONE
  52.                         } ;
  53. static SCRLL40    d002d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_HORIL40,
  54.                                0, 464, 497, 479, 8, 6, 6,
  55.                             MS_PANELL40 | MS_FRAMEL40,
  56.                             imageSBARfunc,
  57.                                0,   0, 255,  16,  16,
  58.                              265, 266
  59.                         } ;
  60.  
  61. /* idImageVSBar */
  62.  
  63. static MMIPACKET d003 = {    &idImageVSBar,
  64.                             &idImageWin,
  65.                             &MJ_SCRLL40,
  66.                             OFFSET(SCRLL40),
  67.                             MS_NONE
  68.                         } ;
  69. static SCRLL40    d003d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40,
  70.                              496,  36, 511, 465, 8, 6, 6,
  71.                             MS_PANELL40 | MS_FRAMEL40,
  72.                             imageSBARfunc,
  73.                                0,   0, 255,  16,  16,
  74.                              263, 264
  75.                         } ;
  76.  
  77. /* idImageTitleDBtn */
  78.  
  79. static MMIPACKET d004 = {    &idImageTitleDBtn,
  80.                             &idImageWin,
  81.                             &MJ_DBUTTONL40,
  82.                             OFFSET(DBUTTONL40),
  83.                             MS_NONE
  84.                         } ;
  85. static DBUTTONL40    d004d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_DSPONLYL40,
  86.                                0,  20, 511,  36, 0, 6, 8,
  87.                             MS_UFRAMEL40 | MS_FRAMEL40,
  88.                             0,
  89.                             0x0000
  90.                         } ;
  91.  
  92. /* idImageTitleMsg */
  93.  
  94. static MMIPACKET d005 = {    &idImageTitleMsg,
  95.                             &idImageWin,
  96.                             &MJ_MSGL40,
  97.                             OFFSET(MSGL40),
  98.                             MS_NONE
  99.                         } ;
  100. static MSGL40    d005d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  101.                               21,  21, 160,  36, 0, 7, 8,
  102.                             MS_NONEL40,
  103.                             "タイトル",
  104.                                1,  12,  12,
  105.                             MS_NONEL40,
  106.                                0,   0
  107.                         } ;
  108.  
  109. /* idImageEraseDBtn */
  110.  
  111. static MMIPACKET d006 = {    &idImageEraseDBtn,
  112.                             &idImageWin,
  113.                             &MJ_DBUTTONL40,
  114.                             0,
  115.                             MS_NONE
  116.                         } ;
  117. static DBUTTONL40    d006d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  118.                                2,  22,  14,  34, 0, 6, 8,
  119.                             MS_PANELL40,
  120.                             ImageEraseDBtnProc,
  121.                             0x0000
  122.                         } ;
  123.  
  124.