home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / S12659.ZIP / SERVER.H < prev    next >
Text File  |  1988-12-30  |  2KB  |  69 lines

  1. /* ID's for the list view windows */
  2. #define ID_GRAPHICS      200
  3. #define ID_STD_LB        201
  4.  
  5. /* ID for the graphics segment */
  6. #define IDSEG_PHONE      506
  7.  
  8. /* ID's for the menu options */
  9. #define IDM_OPTION      1000
  10. #define IDM_PHONE       1001
  11. #define IDM_STD_LB      1002
  12.  
  13. #define IDM_TIMER       1100
  14. #define IDM_TIMERON     1101
  15. #define IDM_TIMEROFF    1102
  16.  
  17. /* Mode constants */
  18. #define PHONE_MODE      2200
  19. #define STD_LB_MODE     2201
  20.  
  21. /* Phone Colors Structure */
  22. typedef struct {
  23.                LONG   Body;
  24.                LONG   BodyOutline;
  25.                LONG   MsgBox;
  26.                LONG   MsgBoxOutline;
  27.                LONG   TextColor;
  28.                LONG   FootColor;
  29.                LONG   FootOutline;
  30.                } PHCOLORS;
  31.  
  32. typedef PHCOLORS           *PPHCOLORS;
  33.  
  34. /* Window Word instance variables structure */
  35. typedef struct {
  36.                int         nMsgCnt;
  37.                int         nMode;
  38.                int         ConvCnt;
  39.                BOOL        bInsert;
  40.                BOOL        bClose ;
  41.                HWND        hwndLink;
  42.                BOOL        bAdvise;
  43.                BOOL        bNoData;
  44.                USHORT      usFormat;
  45.                PHCOLORS    PhColors[2];
  46.                } WWVARS;
  47.  
  48. typedef WWVARS             *PWWVARS;
  49.  
  50. /* Global Variables             */
  51. extern HWND           hStdLB;
  52. extern LONG           lPhFigCnt;
  53. extern HAB            hab;
  54. extern HWND           hwndDDE;
  55.  
  56. /* declarations from srvrini.c  */
  57. HWND PhoneInit(void);
  58. void InitPhoneSeg(HPS, int, PPHCOLORS);
  59. void InitPhoneColors(PPHCOLORS, int);
  60.  
  61. /* declarations from server.c   */
  62. MRESULT APIENTRY GraphicWndProc(void far *hwnd, USHORT message, MPARAM lParam1, MPARAM lParam2);
  63. MRESULT APIENTRY ConversationWndProc(void far *hwnd, USHORT message, MPARAM lParam1, MPARAM lParam2);
  64. PWWVARS InitWindowWordVars(void);
  65.  
  66. /* declarations from srvrmain.c */
  67. int cdecl main(void);
  68.  
  69.