home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: WPS_PM / WPS_PM.zip / xfld085s.zip / helpers / progbars.h < prev    next >
C/C++ Source or Header  |  1999-02-23  |  2KB  |  62 lines

  1.  
  2. /*
  3.  * progbars.h:
  4.  *      header file for progbars.c, which
  5.  *      contains progress bar helper functions.
  6.  *
  7.  *      These can turn any static control into a working progress bar.
  8.  *
  9.  *      Function prefixes (new with V0.81):
  10.  *      --  pbar*   progress bar helper functions
  11.  *
  12.  *      Required #include's before including this header:
  13.  *      --  OS2.H with INCL_WIN.
  14.  *
  15.  *      Copyright (C) 1997-99 Ulrich Möller.
  16.  *      This file is part of the XFolder source package.
  17.  *      XFolder is free software; you can redistribute it and/or modify
  18.  *      it under the terms of the GNU General Public License as published
  19.  *      by the Free Software Foundation, in version 2 as it comes in the
  20.  *      "COPYING" file of the XFolder main distribution.
  21.  *      This program is distributed in the hope that it will be useful,
  22.  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
  23.  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  24.  *      GNU General Public License for more details.
  25.  */
  26.  
  27. #if __cplusplus
  28. extern "C" {
  29. #endif
  30.  
  31. #ifndef PROGBARS_HEADER_INCLUDED
  32.     #define PROGBARS_HEADER_INCLUDED
  33.  
  34.     /* PROGRESSBARDATA:
  35.        structure for progress bar data, saved at QWL_USER window ulong */
  36.     typedef struct _PROGRESSBARDATA
  37.     {
  38.         ULONG      ulNow, ulMax, ulPaintX, ulOldPaintX;
  39.         ULONG      ulAttr;
  40.         PFNWP      OldStaticProc;
  41.         RECTL      rtlBar;
  42.     } PROGRESSBARDATA, *PPROGRESSBARDATA;
  43.  
  44.     #define WM_UPDATEPROGRESSBAR    WM_USER+1000
  45.  
  46.     /* status bar style attributes */
  47.     #define PBA_NOPERCENTAGE        0x0000
  48.     #define PBA_ALIGNLEFT           0x0001
  49.     #define PBA_ALIGNRIGHT          0x0002
  50.     #define PBA_ALIGNCENTER         0x0003
  51.     #define PBA_PERCENTFLAGS        0x0003
  52.     #define PBA_BUTTONSTYLE         0x0010
  53.  
  54.     BOOL pbarProgressBarFromStatic(HWND hwndStatic, ULONG ulAttr);
  55.  
  56. #endif
  57.  
  58. #if __cplusplus
  59. }
  60. #endif
  61.  
  62.