home *** CD-ROM | disk | FTP | other *** search
/ Phoenix Heaven Sunny 2 / APPARE2.BIN / oh_towns / tetujin / src.lzh / IGRWIN.C < prev    next >
C/C++ Source or Header  |  1994-11-16  |  2KB  |  73 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    windowId ;
  9. extern int    windowFunc() ;
  10. extern int    vscrollId ;
  11. extern int    scrollFunc() ;
  12. extern int    hscrollId ;
  13.  
  14. #define ALIGN    4
  15. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  16.  
  17. /*    MMI_init 用データ    */
  18.  
  19. /*    ヘッダ    */
  20.  
  21. MMIINIT    initDataIGRWIN = { "MmiInit",   3, 0 } ;
  22.  
  23. /* windowId */
  24.  
  25. static MMIPACKET d001 = {    &windowId,
  26.                             NULL,
  27.                             &MJ_WINDOWL40,
  28.                             OFFSET(WINDOWL40),
  29.                             MS_NONE
  30.                         } ;
  31. static WINDOWL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_TITLEL40 | MS_CLOSEL40 | MS_RESIZEL40,
  32.                                0,  20, 511, 479, 8, 6, 9,
  33.                             MS_BFRAMEL40 | MS_FRAMEL40,
  34.                             NULL,   0,   0,
  35.                                0,  17, 496, 427,
  36.                              128,  96, 640, 480,
  37.                             windowFunc,
  38.                             "         ",
  39.                         } ;
  40.  
  41. /* vscrollId */
  42.  
  43. static MMIPACKET d002 = {    &vscrollId,
  44.                             &windowId,
  45.                             &MJ_SCRLL40,
  46.                             OFFSET(SCRLL40),
  47.                             MS_NONE
  48.                         } ;
  49. static SCRLL40    d002d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_RIGHTL40 | MS_FIXEDL40,
  50.                              496,  36, 511, 463, 8, 6, 4,
  51.                             MS_PANELL40 | MS_FRAMEL40,
  52.                             scrollFunc,
  53.                                0,   0, 255, 256,   1,
  54.                              263, 264
  55.                         } ;
  56.  
  57. /* hscrollId */
  58.  
  59. static MMIPACKET d003 = {    &hscrollId,
  60.                             &windowId,
  61.                             &MJ_SCRLL40,
  62.                             0,
  63.                             MS_NONE
  64.                         } ;
  65. static SCRLL40    d003d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_RIGHTL40 | MS_FIXEDL40 | MS_HORIL40,
  66.                                0, 464, 495, 479, 8, 6, 4,
  67.                             MS_PANELL40 | MS_FRAMEL40,
  68.                             scrollFunc,
  69.                                0,   0, 255, 256,   1,
  70.                              265, 266
  71.                         } ;
  72.  
  73.