home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 February / PCWK0296.iso / sharewar / dos / program / gs300sr1 / gs300sr1.exe / GP_MSWIN.H < prev    next >
C/C++ Source or Header  |  1994-07-27  |  2KB  |  69 lines

  1. /* Copyright (C) 1992, 1993 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of Aladdin Ghostscript.
  4.   
  5.   Aladdin Ghostscript 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 Aladdin Ghostscript Free Public
  9.   License (the "License") for full details.
  10.   
  11.   Every copy of Aladdin Ghostscript must include a copy of the License,
  12.   normally in a plain ASCII text file named PUBLIC.  The License grants you
  13.   the right to copy, modify and redistribute Aladdin Ghostscript, but only
  14.   under certain conditions described in the License.  Among other things, the
  15.   License requires that the copyright notice and this notice be preserved on
  16.   all copies.
  17. */
  18.  
  19. /* gp_mswin.h */
  20. /* Definitions common to MS Windows implementation */
  21. /* (used by both C code and Windows 'resource') */
  22.   
  23. #define TEXT_ICON    50
  24. #define IMAGE_ICON    51
  25. #define SPOOL_PORT    100
  26. #define CANCEL_PCDONE    101
  27.  
  28. #ifndef RC_INVOKED        /* NOTA BENE */
  29.  
  30. /* system menu constants for image window */
  31. #define M_COPY_CLIP 1
  32.  
  33. /* externals from gp_mswin.c */
  34. extern HWND hwndtext;
  35. extern HINSTANCE phInstance;
  36. extern const LPSTR szAppName;
  37. extern const LPSTR szImgName;
  38. extern BOOL is_win31;
  39. extern BOOL CALLBACK _export AbortProc(HDC, int);
  40. /* imitation pipes */
  41. extern HGLOBAL pipe_hglobal;
  42. extern LPBYTE pipe_lpbyte;
  43. extern UINT pipe_count;
  44.  
  45. /* for gsview.exe */
  46. extern BOOL gsview;
  47. extern HWND gsview_hwnd;
  48. extern BOOL gsview_next;
  49. extern LPSTR gsview_option;
  50. /* messages used between gsview and gswin */
  51. #define WM_GSVIEW WM_USER+0
  52. /* from gswin to gsview */
  53. #define HWND_TEXT    0
  54. #define HWND_IMGCHILD    1
  55. #define GSWIN_CLOSE    2
  56. #define SYNC_OUTPUT    3
  57. #define OUTPUT_PAGE    4
  58. #define SCROLL_POSITION 5
  59. #define PIPE_REQUEST    6
  60. #define BEGIN        7
  61. #define END        8
  62. /* from gsview to gswin image window */
  63. #define NEXT_PAGE    10
  64. #define COPY_CLIPBOARD    11
  65. /* from gsview to gswin text window */
  66. #define PIPE_DATA    12
  67.  
  68. #endif                /* !defined(RC_INVOKED) */
  69.