CONST
 NULL = 0;

CONST
 WM_CREATE              = 300;
 WM_PAINT               = 301;
 WM_COMMAND             = 302;
 WM_DESTROY             = 303;
 WM_MINIMIZE            = 304;
 WM_MAXIMIZE            = 305;
 WM_SIZE                = 306;
 WM_ONFRAME             = 307;
 WM_LOSTFOCUS           = 308;

 WM_KEYDOWN             = 400;
 WM_KEYUP               = 401;

 WM_LBUTTONUP           = 500;
 WM_LBUTTONDOWN         = 501;
 WM_RBUTTONUP           = 502;
 WM_RBUTTONDOWN         = 502;
 WM_MBUTTONUP           = 503;
 WM_MBUTTONDOWN         = 504;
 WM_MOUSEMOVE           = 505;
 WM_MOUSEIN             = 506;
 WM_MOUSEOUT            = 507;

 WM_GETTEXT             = 600;
 WM_SETTEXT             = 601;

 WM_SETVISIBLE          = 700;
 WM_GETVISIBLE          = 701;

 CB_GETID               = 10000;
 CB_SETID               = 10001;
 CB_GETCHECK            = 10002;
 CB_SETCHECK            = 10003;

 XP_SETPLOTCOUNT        = 10100;
 XP_GETPLOTCOUNT        = 10101;
 XP_SETCOLOR            = 10102;
 XP_GETCOLOR            = 10103;
 XP_SETXRANGE           = 10104;
 XP_GETXRANGE           = 10105;
 XP_SETYRANGE           = 10106;
 XP_GETYRANGE           = 10107;
 XP_ADDPOINT            = 10108;
 XP_DELPOINT            = 10109;
 XP_DELALLPOINTS        = 10110;

 WM_USER                = $3FFFFFFF;

CONST
 WS_MINMAX       = $1;
 WS_TITLE        = $2;
 WS_SIZEABLE     = $4;
 WS_CHILD        = $8;

CONST
 Black         =0;
 Blue          =1;
 Green         =2;
 Cyan          =3;
 Red           =4;
 Magenta       =5;
 Brown         =6;
 LightGray     =7;

 DarkGray      =8;
 LightBlue     =9;
 LightGreen    =10;
 LightCyan     =11;
 LightRed      =12;
 LightMagenta  =13;
 Yellow        =14;
 White         =15;
EmptyFill      = 0; 
SolidFill      = 1; 
LineFill       = 2; 
LtSlashFill    = 3; 
SlashFill      = 4; 
BkSlashFill    = 5; 
LtBkSlashFill  = 6; 
HatchFill      = 7; 
XHatchFill     = 8;
InterleaveFill = 9;
WideDotFill    = 10;
CloseDotFill   = 11;
UserFill       = 12;                   
LeftText       = 0;
CenterText     = 1;
RightText      = 2;
BottomText     = 0;
TopText        = 2;