home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / zeryxvc.zip / VCZXPBAR.H < prev    next >
Text File  |  2000-05-26  |  3KB  |  63 lines

  1. /***************************************************************
  2.  *  FILE NAME: D:\ERIC\PBAR3\VCZxPBar.h
  3.  *  Progress bar
  4.  *  23 May 2000
  5.  *  Copyright 2000 Zeryx Inc.
  6.  ***************************************************************/
  7. #define WC_ZXPBAR "VPZxPBarWndClass"    /* PM window class name */
  8.  
  9. /* style definition flags for the PM QWL_STYLE word */
  10. #define   ZX_PERCENT     0x00000001 // Set progress bar as a percent display
  11. #define   ZX_NUMERIC     0x00000002 // Set progress bar as a numeric display
  12. #define   ZX_BUTTONSTYLE 0x00000010 // Give the progress bar a Button relief style
  13. #define   ZX_DEPRESSED   0x00000020 // Give the progress bar a depressed relief style
  14. #define   NO_ERROR  0
  15.  
  16. #define DB_RAISED       0x0400
  17. #define DB_DEPRESSED    0x0800
  18.  
  19.  
  20. VOID RegisterVPZxPBarClass(void); //Function for registering the PM window class
  21.  
  22. /*************************************************************************/
  23. /* Normally, style option information can be stored in an object's       */
  24. /* 32 bit style word.  If more information is required, control data     */
  25. /* can be created for your object.  This control data struct can hold    */
  26. /* fixed sized strings, integers, and other data.  The ENTRYFDATA struct */
  27. /* for a PM Entryfield is a good example of control data.                */
  28. /*                                                                       */
  29. /* Note that VisPro/REXX will automatically store style and control data */
  30. /* along with position, size, and text information.                      */
  31. /*************************************************************************/
  32.  
  33. typedef struct _MYCDATA{
  34.    ULONG cb;
  35.    /* remaining programmer defined data can be added here */
  36.    /* remaining programmer defined data can be added here */
  37.    ULONG      ulNow, ulMax, ulPaintX, ulOldPaintX;
  38.    ULONG      ulAttr;
  39.    RECTL      rtlBar;
  40.  
  41. }MYCDATA;
  42. typedef MYCDATA *PMYCDATA;
  43.  
  44. /*************************************************************************/
  45. /* Progress bar messages                                  */
  46. /*************************************************************************/
  47. /* Updates the progress with a min and max value */
  48. #define ZX_UPDATEPROGRESS WM_USER+1
  49. #define ZM_ISZXPERCENT WM_USER+2
  50. #define ZM_ENABLEZXPERCENT WM_USER+3
  51. #define ZM_ISZXNUMERIC WM_USER+4
  52. #define ZM_ENABLEZXNUMERIC WM_USER+5
  53. /*************************************************************************/
  54. /* Progress bar notification messages                     */
  55. /*************************************************************************/
  56. #define res_00100 100
  57. #define res_00110 110
  58. #define res_00200 200
  59. #define res_00201 201
  60. #define res_00202 202
  61. #define res_00203 203
  62. #define res_00204 204
  63.