home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
zeryxvc.zip
/
VCZXPBAR.H
< prev
next >
Wrap
Text File
|
2000-05-26
|
3KB
|
63 lines
/***************************************************************
* FILE NAME: D:\ERIC\PBAR3\VCZxPBar.h
* Progress bar
* 23 May 2000
* Copyright 2000 Zeryx Inc.
***************************************************************/
#define WC_ZXPBAR "VPZxPBarWndClass" /* PM window class name */
/* style definition flags for the PM QWL_STYLE word */
#define ZX_PERCENT 0x00000001 // Set progress bar as a percent display
#define ZX_NUMERIC 0x00000002 // Set progress bar as a numeric display
#define ZX_BUTTONSTYLE 0x00000010 // Give the progress bar a Button relief style
#define ZX_DEPRESSED 0x00000020 // Give the progress bar a depressed relief style
#define NO_ERROR 0
#define DB_RAISED 0x0400
#define DB_DEPRESSED 0x0800
VOID RegisterVPZxPBarClass(void); //Function for registering the PM window class
/*************************************************************************/
/* Normally, style option information can be stored in an object's */
/* 32 bit style word. If more information is required, control data */
/* can be created for your object. This control data struct can hold */
/* fixed sized strings, integers, and other data. The ENTRYFDATA struct */
/* for a PM Entryfield is a good example of control data. */
/* */
/* Note that VisPro/REXX will automatically store style and control data */
/* along with position, size, and text information. */
/*************************************************************************/
typedef struct _MYCDATA{
ULONG cb;
/* remaining programmer defined data can be added here */
/* remaining programmer defined data can be added here */
ULONG ulNow, ulMax, ulPaintX, ulOldPaintX;
ULONG ulAttr;
RECTL rtlBar;
}MYCDATA;
typedef MYCDATA *PMYCDATA;
/*************************************************************************/
/* Progress bar messages */
/*************************************************************************/
/* Updates the progress with a min and max value */
#define ZX_UPDATEPROGRESS WM_USER+1
#define ZM_ISZXPERCENT WM_USER+2
#define ZM_ENABLEZXPERCENT WM_USER+3
#define ZM_ISZXNUMERIC WM_USER+4
#define ZM_ENABLEZXNUMERIC WM_USER+5
/*************************************************************************/
/* Progress bar notification messages */
/*************************************************************************/
#define res_00100 100
#define res_00110 110
#define res_00200 200
#define res_00201 201
#define res_00202 202
#define res_00203 203
#define res_00204 204