home *** CD-ROM | disk | FTP | other *** search
/ Phoenix Heaven Sunny 2 / APPARE2.BIN / oh_towns / install / ccilib.h < prev    next >
C/C++ Source or Header  |  1995-06-20  |  6KB  |  156 lines

  1. #ifndef    _CCILIB_H
  2. #define    _CCILIB_H
  3.  
  4. #define    NULL    (0)
  5.  
  6. #define    NORMAL    (0)
  7. #define    ERR        (-1)
  8. #define    TRUE    (1)
  9. #define    FALSE    (1)
  10.  
  11. #define    BUFSIZ    (512)
  12.  
  13. #define va_start(ap, parmN) (ap = (char *)(&parmN) + sizeof(int))
  14. #define va_arg(ap, type) ( *(type *) ((ap += __psize(sizeof(type)) ) - __psize(sizeof(type))) )
  15. #define va_end(ap)
  16.  
  17. #define    CLOCKS_PER_SEC    100
  18.  
  19. /*************************************************************************
  20. *    マウス
  21. *************************************************************************/
  22.  
  23. #define    MOS_CON()        PD_curOn()
  24. #define    MOS_COFF()        PD_curOff()
  25. #define    MOS_DEC()        PD_curDec()
  26. #define    MOS_INC()        PD_curInc()
  27.  
  28. /*************************************************************************
  29. *    スクリーン
  30. *************************************************************************/
  31.  
  32. #define    C_BLACK        (_ScnColTbl[ 0])
  33. #define    C_BLUE        (_ScnColTbl[ 1])
  34. #define    C_RED        (_ScnColTbl[ 2])
  35. #define    C_MAGENTA    (_ScnColTbl[ 3])
  36. #define    C_GREEN        (_ScnColTbl[ 4])
  37. #define    C_CYAN        (_ScnColTbl[ 5])
  38. #define    C_YELLOW    (_ScnColTbl[ 6])
  39. #define    C_WHITE        (_ScnColTbl[ 7])
  40. #define    C_HBLACK    (_ScnColTbl[ 8])
  41. #define    C_HBLUE        (_ScnColTbl[ 9])
  42. #define    C_HRED        (_ScnColTbl[10])
  43. #define    C_HMAGENTA    (_ScnColTbl[11])
  44. #define    C_HGREEN    (_ScnColTbl[12])
  45. #define    C_HCYAN        (_ScnColTbl[13])
  46. #define    C_HYELLOW    (_ScnColTbl[14])
  47. #define    C_HWHITE    (_ScnColTbl[15])
  48.  
  49. #define    C_THROUGH    (_ScnCol_though)    /* 透明色        */
  50. #define    C_MWHITE    (_ScnCol_white)        /* 白            */
  51. #define    C_MBLACK    (_ScnCol_black)        /* 黒            */
  52. #define    C_HILIGHT    (_ScnCol_hilight)    /* ハイライト    */
  53. #define    C_SHADOW    (_ScnCol_shadow)    /* 影            */
  54. #define    C_DARK        (_ScnCol_dark)        /* 暗            */
  55. #define    C_LGRAY        (_ScnCol_lgray)        /* ライトグレイ    */
  56.  
  57. #define    PSET    0
  58. #define    PRESET    1
  59. #define    OR        2
  60. #define    AND        3
  61. #define    XOR        4
  62. #define    NOT        5
  63. #define    OPAQUE    9
  64.  
  65. /* タイリング    --------------------------------------------------------*/
  66. #define    MIXCOL_NORMAL    (0x00)
  67. #define    MIXCOL_STD1        (0x01)
  68. #define    MIXCOL_CROSS1    (0x10)
  69. #define    MIXCOL_CROSS2    (0x11)
  70.  
  71.  
  72. /*************************************************************************
  73. *    ダイアログ
  74. *************************************************************************/
  75.  
  76. /* ダイアログ表示位置    ------------------------------------------------*/
  77. #define    DLGPOS_NORMAL            (0)
  78. #define    DLGPOS_CENTER_OF_SCREEN    (1)    /* 画面中央                */
  79. #define    DLGPOS_MOSCUR            (8)    /* マウスカーソル位置に    */
  80.  
  81. /* メッセージ属性    ----------------------------------------------------*/
  82. #define    TXMDAT_ATT_LEFT        (0)
  83. #define    TXMDAT_ATT_CENTER    (1)
  84. #define    TXMDAT_ATT_RIGHT    (2)
  85.  
  86. /*************************************************************************
  87. *    ファイルライブラリ
  88. *************************************************************************/
  89.  
  90. #define    FSISFILE_ERR    (-1)
  91. #define    FSISFILE_FILE    (1)
  92. #define    FSISFILE_DIR    (2)
  93.  
  94. /*************************************************************************
  95. *    ファイルダイアログ
  96. *************************************************************************/
  97.  
  98. /*    属性    ------------------------------------------------------------*/
  99. #define    FDLATT_SINGLE        (0x00000001)    /* ファイルをひとつだけ選択/指定        */
  100. #define    FDLATT_MULTI        (0x00000002)    /* 複数選択/指定                        */
  101. #define    FDLATT_PATH            (0x00000003)    /* ディレクトリ選択/指定                */
  102. #define    FDLATT_DIRIGN        (0x00000080)    /* サブディレクトリの選択/指定を禁止    */
  103. #define    FDLATT_DUPIGN        (0x00000800)    /* 同一ファイル1の選択を禁止する        */
  104. #define    FDLATT_EXIST        (0x00008000)    /* 存在するファイルのみ選択可能            */
  105. #define    FDLATT_SIDEWORK        (0x00010000)    /* サイドーク                            */
  106. #define    FDLATT_DOSCALL        (0x00020000)    /* DOS コマンド                            */
  107. #define    FDLATT_EXTIGN        (0x00040000)    /* 拡張メニュー禁止                        */
  108.  
  109. /*    sort    ------------------------------------------------------------*/
  110. #define    FDLSORT_OFF            (0)            /* ソートなし        */
  111. #define    FDLSORT_FILE        (1)            /* ファイル名        */
  112. #define    FDLSORT_SUB            (2)            /* 拡張子            */
  113. #define    FDLSORT_DATE        (3)            /* 日付                */
  114. #define    FDLSORT_SIZE        (4)            /* サイズ            */
  115. #define    FDLSORT_RVS            (0x80)        /* 昇順/降順        */
  116. #define    FDLSORT_DIRBIT        (0x60)
  117. #define    FDLSORT_DIRTOP        (0x00)        /* ディレクトリ先頭    */
  118. #define    FDLSORT_DIRLAST        (0x20)        /* ディレクトリ最後    */
  119. #define    FDLSORT_DIROFF        (0x40)        /* ディレクトリ        */
  120.  
  121. /*************************************************************************
  122. *    ファイルコピー
  123. *************************************************************************/
  124.  
  125. /*    fcopy    ------------------------------------------------------------*/
  126. #define    FCOPY_ATT_SUBDIR        (0x00000001)    /* サブディレクトリも複写    */
  127. #define    FCOPY_ATT_HIDDEN        (0x00000002)    /* 隠しファイルも複写        */
  128. #define    FCOPY_ATT_SYSTEM        (0x00000004)    /* システムファイルも複写    */
  129. #define    FCOPY_ATT_ATTRIBUTES    (0x00000008)    /* ファイル属性も複写        */
  130. #define    FCOPY_ATT_TIMESTAMP        (0x00000010)    /* タイムスタンプも複写        */
  131.  
  132. #define    FCOPY_ATT_CHK_OVERWRITE    (0x00000100)    /* 上書き確認                */
  133. #define    FCOPY_ATT_CHK_TIMESTAMP    (0x00000200)    /* タイムスタンプ比較        */
  134.  
  135. #define    FCOPY_ATT_NOENDMSG        (0x01000000)    /* 終了メッセージなし        */
  136.  
  137. /*************************************************************************
  138. *    DTA & PCL
  139. *************************************************************************/
  140.  
  141. #define    APLPCL_SAVE_SCREEN        (1)        /* 画面保存                    */
  142. #define    APLPCL_RESET_CRTC        (2)        /* 画面再設定                */
  143. #define    APLPCL_SET_STARTPATH    (4)        /* 起動パスDTA 設定            */
  144. #define    APLPCL_SET_PCP            (8)        /* PCP 設定                    */
  145. #define    APLPCL_SET_MRESO        (16)    /* 中解像度設定                */
  146. #define    APLPCL_CLEAR_SCREEN        (32)    /* 画面の消去                */
  147. #define    APLPCL_DTALIB_IGNORE    (128)    /* DTA ライブラリ使用禁止    */
  148.  
  149. /*************************************************************************
  150. *    IMG
  151. *************************************************************************/
  152.  
  153. #define    IMG_ATT_PLTON    (0x00010000)
  154.  
  155. #endif
  156.