#ifndef __WIN_USER #define __WIN_USER #define WM_USER 0x0400 #define _WIN32 0x0400 #define WINVER 0x0400 *-- /* *-- * Window field offsets for GetWindowLong() *-- */ #define GWL_WNDPROC (-4) #define GWL_HINSTANCE (-6) #define GWL_HWNDPARENT (-8) #define GWL_STYLE (-16) #define GWL_EXSTYLE (-20) #define GWL_USERDATA (-21) #define GWL_ID (-12) #define CW_USEDEFAULT (-1) &&((int)0x80000000) *-- /* *-- * Progress Bar *-- */ #define PROGRESS_CLASS "msctls_progress32" #define PBS_SMOOTH 0x01 #define PBS_VERTICAL 0x04 #define PBM_SETRANGE (WM_USER+1) #define PBM_SETPOS (WM_USER+2) #define PBM_DELTAPOS (WM_USER+3) #define PBM_SETSTEP (WM_USER+4) #define PBM_STEPIT (WM_USER+5) *--//====== STATUS BAR CONTROL =================================================== #define SBARS_SIZEGRIP 0x0100 #define STATUSCLASSNAME "msctls_statusbar32" *--/* *-- * Scroll Bar Constants *-- */ #define SB_HORZ 0 #define SB_VERT 1 #define SB_CTL 2 #define SB_BOTH 3 *--/* *-- * Scroll Bar Commands *-- */ #define SB_LINEUP 0 #define SB_LINELEFT 0 #define SB_LINEDOWN 1 #define SB_LINERIGHT 1 #define SB_PAGEUP 2 #define SB_PAGELEFT 2 #define SB_PAGEDOWN 3 #define SB_PAGERIGHT 3 #define SB_THUMBPOSITION 4 #define SB_THUMBTRACK 5 #define SB_TOP 6 #define SB_LEFT 6 #define SB_BOTTOM 7 #define SB_RIGHT 7 #define SB_ENDSCROLL 8 #define SB_SETTEXT (WM_USER+1) #define SB_GETTEXT (WM_USER+2) #define SB_GETTEXTLENGTH (WM_USER+3) #define SB_SETPARTS (WM_USER+4) #define SB_GETPARTS (WM_USER+6) #define SB_GETBORDERS (WM_USER+7) #define SB_SETMINHEIGHT (WM_USER+8) #define SB_SIMPLE (WM_USER+9) #define SB_GETRECT (WM_USER+10) #define SB_ISSIMPLE (WM_USER+14) #define SBT_OWNERDRAW 0x1000 #define SBT_NOBORDERS 0x0100 #define SBT_POPOUT 0x0200 #define SBT_RTLREADING 0x0400 *-- /* *-- * Scroll bar messages *-- */ *-- #ifndef NOWINMESSAGES #define SBM_SETPOS 0x00E0 && /*not in win3.1 */ #define SBM_GETPOS 0x00E1 && /*not in win3.1 */ #define SBM_SETRANGE 0x00E2 && /*not in win3.1 */ #define SBM_SETRANGEREDRAW 0x00E6 && /*not in win3.1 */ #define SBM_GETRANGE 0x00E3 && /*not in win3.1 */ #define SBM_ENABLE_ARROWS 0x00E4 && /*not in win3.1 */ *-- #if(WINVER >= 0x0400) #define SBM_SETSCROLLINFO 0x00E9 #define SBM_GETSCROLLINFO 0x00EA #define SIF_RANGE 0x0001 #define SIF_PAGE 0x0002 #define SIF_POS 0x0004 #define SIF_DISABLENOSCROLL 0x0008 #define SIF_TRACKPOS 0x0010 *--#define SIF_ALL bitor( SIF_RANGE, BitOr( SIF_PAGE,BitOr( SIF_POS, SIF_TRACKPOS))) #define SIF_ALL 0x0017 *-- #if .f. *-- //====== TRACKBAR CONTROL ===================================================== *-- *-- #ifndef NOTRACKBAR *-- *-- #ifdef _WIN32 *-- *-- #define TRACKBAR_CLASSA "msctls_trackbar32" *-- #define TRACKBAR_CLASSW L"msctls_trackbar32" *-- *-- #ifdef UNICODE *-- #define TRACKBAR_CLASS TRACKBAR_CLASSW *-- #else *-- #define TRACKBAR_CLASS TRACKBAR_CLASSA *-- #endif *-- *-- #else *-- #define TRACKBAR_CLASS "msctls_trackbar" *-- #endif *-- *-- *-- #define TBS_AUTOTICKS 0x0001 *-- #define TBS_VERT 0x0002 *-- #define TBS_HORZ 0x0000 *-- #define TBS_TOP 0x0004 *-- #define TBS_BOTTOM 0x0000 *-- #define TBS_LEFT 0x0004 *-- #define TBS_RIGHT 0x0000 *-- #define TBS_BOTH 0x0008 *-- #define TBS_NOTICKS 0x0010 *-- #define TBS_ENABLESELRANGE 0x0020 *-- #define TBS_FIXEDLENGTH 0x0040 *-- #define TBS_NOTHUMB 0x0080 *-- #define TBS_TOOLTIPS 0x0100 *-- *-- #define TBM_GETPOS (WM_USER) *-- #define TBM_GETRANGEMIN (WM_USER+1) *-- #define TBM_GETRANGEMAX (WM_USER+2) *-- #define TBM_GETTIC (WM_USER+3) *-- #define TBM_SETTIC (WM_USER+4) *-- #define TBM_SETPOS (WM_USER+5) *-- #define TBM_SETRANGE (WM_USER+6) *-- #define TBM_SETRANGEMIN (WM_USER+7) *-- #define TBM_SETRANGEMAX (WM_USER+8) *-- #define TBM_CLEARTICS (WM_USER+9) *-- #define TBM_SETSEL (WM_USER+10) *-- #define TBM_SETSELSTART (WM_USER+11) *-- #define TBM_SETSELEND (WM_USER+12) *-- #define TBM_GETPTICS (WM_USER+14) *-- #define TBM_GETTICPOS (WM_USER+15) *-- #define TBM_GETNUMTICS (WM_USER+16) *-- #define TBM_GETSELSTART (WM_USER+17) *-- #define TBM_GETSELEND (WM_USER+18) *-- #define TBM_CLEARSEL (WM_USER+19) *-- #define TBM_SETTICFREQ (WM_USER+20) *-- #define TBM_SETPAGESIZE (WM_USER+21) *-- #define TBM_GETPAGESIZE (WM_USER+22) *-- #define TBM_SETLINESIZE (WM_USER+23) *-- #define TBM_GETLINESIZE (WM_USER+24) *-- #define TBM_GETTHUMBRECT (WM_USER+25) *-- #define TBM_GETCHANNELRECT (WM_USER+26) *-- #define TBM_SETTHUMBLENGTH (WM_USER+27) *-- #define TBM_GETTHUMBLENGTH (WM_USER+28) *-- #define TBM_SETTOOLTIPS (WM_USER+29) *-- #define TBM_GETTOOLTIPS (WM_USER+30) *-- #define TBM_SETTIPSIDE (WM_USER+31) *-- // TrackBar Tip Side flags *-- #define TBTS_TOP 0 *-- #define TBTS_LEFT 1 *-- #define TBTS_BOTTOM 2 *-- #define TBTS_RIGHT 3 *-- *-- #define TBM_SETBUDDY (WM_USER+32) // wparam = BOOL fLeft; (or right) *-- #define TBM_GETBUDDY (WM_USER+33) // wparam = BOOL fLeft; (or right) *-- *-- *-- #define TB_LINEUP 0 *-- #define TB_LINEDOWN 1 *-- #define TB_PAGEUP 2 *-- #define TB_PAGEDOWN 3 *-- #define TB_THUMBPOSITION 4 *-- #define TB_THUMBTRACK 5 *-- #define TB_TOP 6 *-- #define TB_BOTTOM 7 *-- #define TB_ENDTRACK 8 *-- *-- *-- // custom draw item specs *-- #define TBCD_TICS 0x0001 *-- #define TBCD_THUMB 0x0002 *-- #define TBCD_CHANNEL 0x0003 *-- *-- #endif // trackbar *-- /* *-- * Window Styles *-- */ #define WS_OVERLAPPED 0x00000000 #define WS_POPUP 0x80000000 #define WS_CHILD 0x40000000 #define WS_MINIMIZE 0x20000000 #define WS_VISIBLE 0x10000000 #define WS_DISABLED 0x08000000 #define WS_CLIPSIBLINGS 0x04000000 #define WS_CLIPCHILDREN 0x02000000 #define WS_MAXIMIZE 0x01000000 #define WS_CAPTION 0x00C00000 #define WS_BORDER 0x00800000 #define WS_DLGFRAME 0x00400000 #define WS_VSCROLL 0x00200000 #define WS_HSCROLL 0x00100000 #define WS_SYSMENU 0x00080000 #define WS_THICKFRAME 0x00040000 #define WS_GROUP 0x00020000 #define WS_TABSTOP 0x00010000 /* * Window Messages */ #define WM_NULL 0x0000 #define WM_CREATE 0x0001 #define WM_DESTROY 0x0002 #define WM_MOVE 0x0003 #define WM_SIZE 0x0005 #define WM_ACTIVATE 0x0006 *--/****** Window repainting ***************************************************/ #define WM_PAINT 0x000F #define WM_ERASEBKGND 0x0014 #define WM_ICONERASEBKGND 0x0027 *--/* *-- * ShowWindow() Commands *-- */ #define SW_HIDE 0 #define SW_SHOWNORMAL 1 #define SW_NORMAL 1 #define SW_SHOWMINIMIZED 2 #define SW_SHOWMAXIMIZED 3 #define SW_MAXIMIZE 3 #define SW_SHOWNOACTIVATE 4 #define SW_SHOW 5 #define SW_MINIMIZE 6 #define SW_SHOWMINNOACTIVE 7 #define SW_SHOWNA 8 #define SW_RESTORE 9 #define SW_SHOWDEFAULT 10 #define SW_MAX 10 *--//---------------------------------------------------------------------------- *--// *--// ObjToClient constants *--// *--//---------------------------------------------------------------------------- #define OTC_TOP 1 #define OTC_LEFT 2 #define OTC_WIDTH 3 #define OTC_HEIGHT 4 #endif && // __WIN_USER