home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / prtcproj.zip / PRTDEMO.H < prev    next >
C/C++ Source or Header  |  1995-07-02  |  6KB  |  118 lines

  1. /* Version of 95/05/11 by Peter Kanis */
  2. /************************************************************************
  3. *  Project     : PRTGRAPH                 Date    : 95/05/11            *
  4. *  Module      : C Library demo                                         *
  5. *  Filename    : prtdemo.h                Author  : Peter Kanis         *
  6. *************************************************************************
  7. *                                                                       *
  8. *  Description:                                                         *
  9. *                                                                       *
  10. *  Export:                                                              *
  11. *                                                                       *
  12. *  Intenal:                                                             *
  13. *                                                                       *
  14. *  Locals:      none                                                    *
  15. *                                                                       *
  16. *  Revisions:   none                                                    *
  17. *                                                                       *
  18. *************************************************************************
  19. *                                                                       *
  20. *  (c) ADD Consulting  All Rights Reserved                              *
  21. *                                                                       *
  22. *************************************************************************/
  23.  
  24. #include    <stdlib.h>
  25. #include    <stdio.h>
  26. #include    <string.h>
  27. #include    <malloc.h>
  28. #include    <prtgrafc.h>
  29. #include    "dialog.h"
  30.  
  31. /************************************************************************/
  32. /* Defines for string table.                                            */
  33. /************************************************************************/
  34.  
  35. #define ID_WINDOW                       2
  36.  
  37. #define DEMO_BASE                       100
  38.  
  39. #define SPIN_HW_TXT                     SPIN_HW     + DEMO_BASE
  40. #define SPIN_HS_TXT                     SPIN_HS     + DEMO_BASE
  41. #define CB_HEADER_TXT                   CB_HEADER   + DEMO_BASE
  42. #define CB_ALLPAGES_TXT                 CB_ALLPAGES + DEMO_BASE
  43. #define SPIN_FW_TXT                     SPIN_FW     + DEMO_BASE
  44. #define SPIN_FS_TXT                     SPIN_FS     + DEMO_BASE
  45. #define CB_FOOTER_TXT                   CB_FOOTER   + DEMO_BASE
  46. #define SPIN_BW_TXT                     SPIN_BW     + DEMO_BASE
  47. #define SPIN_BS_TXT                     SPIN_BS     + DEMO_BASE
  48. #define CB_BORDER_TXT                   CB_BORDER   + DEMO_BASE
  49. #define SPIN_INTERL_TXT                 SPIN_INTERL + DEMO_BASE
  50. #define SPIN_LM_TXT                     SPIN_LM     + DEMO_BASE
  51. #define SPIN_RM_TXT                     SPIN_RM     + DEMO_BASE
  52. #define SPIN_TM_TXT                     SPIN_TM     + DEMO_BASE
  53. #define SPIN_BM_TXT                     SPIN_BM     + DEMO_BASE
  54. #define RB_TEXTL_TXT                    RB_TEXTL    + DEMO_BASE
  55. #define RB_TEXTR_TXT                    RB_TEXTR    + DEMO_BASE
  56. #define RB_TEXTC_TXT                    RB_TEXTC    + DEMO_BASE
  57. #define RB_TEXTJ_TXT                    RB_TEXTJ    + DEMO_BASE
  58. #define RB_BITMAP_TXT                   RB_BITMAP   + DEMO_BASE
  59. #define RB_TABLES_TXT                   RB_TABLES   + DEMO_BASE
  60. #define RB_STYLES_TXT                   RB_STYLES   + DEMO_BASE
  61. #define RB_TABBED_TXT                   RB_TABBED   + DEMO_BASE
  62. #define PB_FONT_TXT                     PB_FONT     + DEMO_BASE
  63. #define EF_FONT_TXT                     EF_FONT     + DEMO_BASE
  64. #define PB_PRINTER_TXT                  PB_PRINTER  + DEMO_BASE
  65. #define PB_JOBPROPS_TXT                 PB_JOBPROPS + DEMO_BASE
  66. #define PB_PRINT_TXT                    PB_PRINT    + DEMO_BASE
  67.  
  68.  
  69. /************************************************************************/
  70. /* Structure for holding Status texts                                   */
  71. /************************************************************************/
  72.  
  73. typedef struct _ILIST
  74.     {
  75.     HWND            hwnd;                   /* Handle to dialog item */
  76.     USHORT          Id;                     /* Id if dialog item */
  77.     LONG            lleft;                  /* left edge */
  78.     LONG            lright;                 /* right edge */
  79.     LONG            ltop;                   /* top edge */
  80.     LONG            lbottom;                /* bottom edge */
  81.     char            cStatusText[ 128];      /* status text */
  82.     struct _ILIST   *pnext;
  83.     } ILIST, *PILIST;
  84.  
  85. /************************************************************************/
  86. /* Function declarations.                                               */
  87. /************************************************************************/
  88.     
  89. VOID DemoDlgInit( HWND);
  90. VOID DemoDlgSetStatusText( HWND, MPARAM);
  91. VOID DemoDlgGetItemPositions( HWND);
  92. VOID DelItemList( VOID);
  93. BOOL DemoPrint( HWND);
  94. BOOL PrepareJob( HWND);
  95. VOID DemoPrintTables( VOID);
  96. VOID DemoPrintStyles( VOID);
  97. VOID DemoPrintTabbed( VOID);
  98. VOID DemoCentreWin( HWND);
  99.  
  100. MRESULT EXPENTRY DemoDlgProc( HWND, ULONG, MPARAM, MPARAM);
  101. MRESULT EXPENTRY DemoWndProc( HWND, ULONG, MPARAM, MPARAM);
  102.  
  103. VOID APIENTRY NewPageFunc( HGRPRT, USHORT, BOOL);
  104.  
  105. /************************************************************************/
  106. /* Declaration for import function (about Dialog)                       */
  107. /************************************************************************/
  108.  
  109. HWND EXPENTRY AddProductInfoDlg( HAB, HWND, PSZ, PSZ);
  110.  
  111. /************************************************************************/
  112. /*                                                                      */
  113. /*                         (c) ADD Consulting 1995                      */
  114. /*                                                                      */
  115. /*                               END OF FILE.                           */
  116. /*                                                                      */
  117. /************************************************************************/
  118.