home *** CD-ROM | disk | FTP | other *** search
/ swCHIP 1991 January / swCHIP_95-1.bin / utility / gsview13 / gsgrab / gsgrab.h < prev    next >
C/C++ Source or Header  |  1995-12-09  |  3KB  |  99 lines

  1. /* Copyright (C) 1993, 1994, 1995, Russell Lang.  All rights reserved.
  2.   
  3.   This file is part of GSview.
  4.   
  5.   This program is distributed with NO WARRANTY OF ANY KIND.  No author
  6.   or distributor accepts any responsibility for the consequences of using it,
  7.   or for whether it serves any particular purpose or works at all, unless he
  8.   or she says so in writing.  Refer to the GSview Free Public Licence 
  9.   (the "Licence") for full details.
  10.   
  11.   Every copy of GSview must include a copy of the Licence, normally in a 
  12.   plain ASCII text file named LICENCE.  The Licence grants you the right 
  13.   to copy, modify and redistribute GSview, but only under certain conditions 
  14.   described in the Licence.  Among other things, the Licence requires that 
  15.   the copyright notice and this notice be preserved on all copies.
  16. */
  17.  
  18. /* gsgrab.h */
  19.  
  20. #define GSGRAB_VERSION    "0.3alpha 1995-04-26"
  21.  
  22. #define GRABICON    100
  23.  
  24. #define IDC_SETUP    201
  25. #define IDC_CANCEL    202
  26. #define IDC_ABOUT    203
  27. #define IDC_HELP    204
  28. #define IDHELP        204
  29. #define NBUTTON        4
  30.  
  31.  
  32. #define GRABDLG        500
  33. #define IDC_GSCOMMAND    501
  34. #define IDC_PRINTER    502
  35. #define IDC_RESTEXT    503
  36. #define IDC_RES        504
  37. #define IDC_PORT    505
  38. #define IDC_INTERVAL    506
  39.  
  40. #define ABOUTDLG    520
  41. #define IDC_VERSION    521
  42.  
  43. #define IDR_DEVICES     600
  44.  
  45. #ifndef RC_INVOKED
  46. extern char szAppName[];
  47. extern char szCommand[256];
  48. extern char szGrabFile[128];
  49.  
  50. extern char szGhostscript[256];
  51. extern char szPrinter[64];
  52. extern char szResolution[64];
  53. extern char szPort[64];
  54. extern char szInterval[20];
  55.  
  56. extern char szHelpName[];
  57. extern char szIniName[];
  58. extern char szOptionSection[];
  59. extern char szDevSection[];
  60. extern char szDefCommand[];
  61. extern char szUnknown[];
  62.  
  63. extern HWND hwndgrab;
  64. extern HICON hicongrab;
  65. extern BOOL printing;
  66. extern HINSTANCE phInstance;
  67. extern POINT char_size;
  68. extern HWND hbutton[NBUTTON];
  69. extern WNDPROC lpfnButtonWndProc;
  70. extern int interval;
  71.  
  72. /* gsgrab.c */
  73.  
  74. BOOL start_timer(void);
  75. void stop_timer(void);
  76. BOOL call_gs(void);
  77. LRESULT CALLBACK _export WndGSgrabProc(HWND, UINT, WPARAM, LPARAM);
  78. LRESULT CALLBACK _export ButtonProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
  79.  
  80. /* gsgdlg.c */
  81. void show_about(void);
  82. BOOL setup(void);
  83.  
  84. /* gsginit.c */
  85. void init_window(void);
  86. void init_profile(void);
  87.  
  88. #ifdef __WIN32__
  89. #define GetNotification(wParam,lParam) (HIWORD(wParam))
  90. #define SendDlgNotification(hwnd, id, notice) \
  91.     SendMessage((hwnd), WM_COMMAND, MAKELONG((id),(notice)), (LPARAM)GetDlgItem((hwnd),(id)))
  92. #else
  93. #define GetNotification(wParam,lParam) (HIWORD(lParam))
  94. #define SendDlgNotification(hwnd, id, notice) \
  95.     SendMessage((hwnd), WM_COMMAND, id, MAKELPARAM(GetDlgItem((hwnd),(id)),(notice)))
  96. #endif
  97.  
  98. #endif
  99.