📄 foxpro.h
字号:
#DEFINE COLOR_MAGENTA 16711935
#DEFINE COLOR_DARK_MAGENTA 8388736
*-- MousePointer
#DEFINE MOUSE_DEFAULT 0 && 0 - Default
#DEFINE MOUSE_ARROW 1 && 1 - Arrow
#DEFINE MOUSE_CROSSHAIR 2 && 2 - Cross
#DEFINE MOUSE_IBEAM 3 && 3 - I-Beam
#DEFINE MOUSE_ICON_POINTER 4 && 4 - Icon
#DEFINE MOUSE_SIZE_POINTER 5 && 5 - Size
#DEFINE MOUSE_SIZE_NE_SW 6 && 6 - Size NE SW
#DEFINE MOUSE_SIZE_N_S 7 && 7 - Size N S
#DEFINE MOUSE_SIZE_NW_SE 8 && 8 - Size NW SE
#DEFINE MOUSE_SIZE_W_E 9 && 9 - Size W E
#DEFINE MOUSE_UP_ARROW 10 && 10 - Up Arrow
#DEFINE MOUSE_HOURGLASS 11 && 11 - Hourglass
#DEFINE MOUSE_NO_DROP 12 && 12 - No drop
#DEFINE MOUSE_HIDE_POINTER 13 && 13 - Hide Pointer
#DEFINE MOUSE_ARROW2 14 && 14 - Arrow
#DEFINE MOUSE_CUSTOM 99 && 99 - Custom
*-- ScrollBars
#DEFINE SCROLLBARS_NONE 0 && 0 - None (Default)
#DEFINE SCROLLBARS_HORIZONTAL 1 && 1 - Horizontal
#DEFINE SCROLLBARS_VERTICAL 2 && 2 - Vertical
#DEFINE SCROLLBARS_BOTH 3 && 3 - Both
*-- DrawMode
#DEFINE DRAWMODE_BLACKNESS 1 && 1 - Blackness
#DEFINE DRAWMODE_NOT_MERGE_PEN 2 && 2 - Not Merge Pen
#DEFINE DRAWMODE_MASK_NOT_PEN 3 && 3 - Mask Not Pen
#DEFINE DRAWMODE_NOT_COPY_PEN 4 && 4 - Not Copy Pen
#DEFINE DRAWMODE_MASK_PEN_NOT 5 && 5 - Mask Pen Not
#DEFINE DRAWMODE_INVERT 6 && 6 - Invert
#DEFINE DRAWMODE_XOR_PEN 7 && 7 - Xor Pen
#DEFINE DRAWMODE_NOT_MASK_PEN 8 && 8 - Not Mask Pen
#DEFINE DRAWMODE_MASK_PEN 9 && 9 - Mask Pen
#DEFINE DRAWMODE_NOT_XOR_PEN 10 && 10 - Not Xor Pen
#DEFINE DRAWMODE_NOP 11 && 11 - Nop
#DEFINE DRAWMODE_MERGE_NOT_PEN 12 && 12 - Merge Not Pen
#DEFINE DRAWMODE_COPY_PEN 13 && 13 - Copy Pen
#DEFINE DRAWMODE_MERGE_PEN_NOT 14 && 14 - Merge Pen Not
#DEFINE DRAWMODE_MERGE_PEN 15 && 15 - Merge Pen
#DEFINE DRAWMODE_WHITENESS 16 && 16 - Whiteness
*-- DrawStyle
#DEFINE DRAWSTYLE_SOLID 0 && 0 - Solid
#DEFINE DRAWSTYLE_DASH 1 && 1 - Dash
#DEFINE DRAWSTYLE_DOT 2 && 2 - Dot
#DEFINE DRAWSTYLE_DASH_DOT 3 && 3 - Dash-Dot
#DEFINE DRAWSTYLE_DASH_DOT_DOT 4 && 4 - Dash-Dot-Dot
#DEFINE DRAWSTYLE_INVISIBLE 5 && 5 - Invisible
#DEFINE DRAWSTYLE_INSIDE_SOLID 6 && 6 - Inside Solid
*-- FillStyle
#DEFINE FILLSTYLE_SOLID 0 && 0 - Solid
#DEFINE FILLSTYLE_TRANSPARENT 1 && 1 - Transparent
#DEFINE FILLSTYLE_HORIZONTAL_LINE 2 && 2 - Horizontal Line
#DEFINE FILLSTYLE_VERTICAL_LINE 3 && 3 - Vertical Line
#DEFINE FILLSTYLE_UPWARD_DIAGONAL 4 && 4 - Upward Diagonal
#DEFINE FILLSTYLE_DOWNWARD_DIAGONAL 5 && 5 - Downward Diagonal
#DEFINE FILLSTYLE_CROSS 6 && 6 - Cross
#DEFINE FILLSTYLE_DIAGONAL_CROSS 7 && 7 - Diagonal Cross
*-- ScaleMode
#DEFINE SCALEMODE_PIXELS 3 && 3 - Pixel
#DEFINE SCALEMODE_FOXELS 0 && 0 - Foxels
*-- WindowState
#DEFINE WINDOWSTATE_NORMAL 0 && 0 - Normal
#DEFINE WINDOWSTATE_MINIMIZED 1 && 1 - Minimized
#DEFINE WINDOWSTATE_MAXIMIZED 2 && 2 - Maximized
*-- Window Borders
#DEFINE BORDER_NONE 0
#DEFINE BORDER_SINGLE 1
#DEFINE BORDER_DOUBLE 2
#DEFINE BORDER_SYSTEM 3
*-- Toolbar Positions
#DEFINE TOOL_NOTDOCKED -1
#DEFINE TOOL_TOP 0
#DEFINE TOOL_LEFT 1
#DEFINE TOOL_RIGHT 2
#DEFINE TOOL_BOTTOM 3
*-- Button parameter masks
#DEFINE BUTTON_LEFT 1
#DEFINE BUTTON_RIGHT 2
#DEFINE BUTTON_MIDDLE 4
*-- Function Parameters
*-- MessageBox parameters
#DEFINE MB_OK 0 && OK button only
#DEFINE MB_OKCANCEL 1 && OK and Cancel buttons
#DEFINE MB_ABORTRETRYIGNORE 2 && Abort, Retry, and Ignore buttons
#DEFINE MB_YESNOCANCEL 3 && Yes, No, and Cancel buttons
#DEFINE MB_YESNO 4 && Yes and No buttons
#DEFINE MB_RETRYCANCEL 5 && Retry and Cancel buttons
#DEFINE MB_ICONSTOP 16 && Critical message
#DEFINE MB_ICONQUESTION 32 && Warning query
#DEFINE MB_ICONEXCLAMATION 48 && Warning message
#DEFINE MB_ICONINFORMATION 64 && Information message
#DEFINE MB_APPLMODAL 0 && Application modal message box
#DEFINE MB_DEFBUTTON1 0 && First button is default
#DEFINE MB_DEFBUTTON2 256 && Second button is default
#DEFINE MB_DEFBUTTON3 512 && Third button is default
#DEFINE MB_SYSTEMMODAL 4096 && System Modal
*-- MsgBox return values
#DEFINE IDOK 1 && OK button pressed
#DEFINE IDCANCEL 2 && Cancel button pressed
#DEFINE IDABORT 3 && Abort button pressed
#DEFINE IDRETRY 4 && Retry button pressed
#DEFINE IDIGNORE 5 && Ignore button pressed
#DEFINE IDYES 6 && Yes button pressed
#DEFINE IDNO 7 && No button pressed
*-- Low Level File Constants
#DEFINE F_READONLY 0
#DEFINE F_WRITEONLY 1
#DEFINE F_READWRITE 2
#DEFINE F_READONLY_UNBUFF 10
#DEFINE F_WRITEONLY_UNBUFF 11
#DEFINE F_READWRITE_UNBUFF 12
*-- PRTINFO() Constants
*-- PRTINFO() Valid types to pass
#DEFINE PRT_ORIENTATION 1
#DEFINE PRT_PAPERSIZE 2
#DEFINE PRT_PAPERLENGTH 3
#DEFINE PRT_PAPERWIDTH 4
#DEFINE PRT_SCALE 5
#DEFINE PRT_COPIES 6
#DEFINE PRT_DEFASOURCE 7
#DEFINE PRT_PRINTQUAL 8
#DEFINE PRT_COLOR 9
#DEFINE PRT_DUPLEX 10
#DEFINE PRT_YRESOLUTION 11
#DEFINE PRT_TTOPTION 12
#DEFINE PRT_COLLATE 13
*--PRTINFO() Return types
*-- Paper sizes
#define PRTPAPER_LETTER 1 && Letter 8 1/2 x 11 in
#define PRTPAPER_LETTERSMALL 2 && Letter Small 8 1/2 x 11 in
#define PRTPAPER_TABLOID 3 && Tabloid 11 x 17 in
#define PRTPAPER_LEDGER 4 && Ledger 17 x 11 in
#define PRTPAPER_LEGAL 5 && Legal 8 1/2 x 14 in
#define PRTPAPER_STATEMENT 6 && Statement 5 1/2 x 8 1/2 in
#define PRTPAPER_EXECUTIVE 7 && Executive 7 1/4 x 10 1/2 in
#define PRTPAPER_A3 8 && A3 297 x 420 mm
#define PRTPAPER_A4 9 && A4 210 x 297 mm
#define PRTPAPER_A4SMALL 10 && A4 Small 210 x 297 mm
#define PRTPAPER_A5 11 && A5 148 x 210 mm
#define PRTPAPER_B4 12 && B4 250 x 354
#define PRTPAPER_B5 13 && B5 182 x 257 mm
#define PRTPAPER_FOLIO 14 && Folio 8 1/2 x 13 in
#define PRTPAPER_QUARTO 15 && Quarto 215 x 275 mm
#define PRTPAPER_10X14 16 && 10x14 in
#define PRTPAPER_11X17 17 && 11x17 in
#define PRTPAPER_NOTE 18 && Note 8 1/2 x 11 in
#define PRTPAPER_ENV_9 19 && Envelope #9 3 7/8 x 8 7/8
#define PRTPAPER_ENV_10 20 && Envelope #10 4 1/8 x 9 1/2
#define PRTPAPER_ENV_11 21 && Envelope #11 4 1/2 x 10 3/8
#define PRTPAPER_ENV_12 22 && Envelope #12 4 \276 x 11
#define PRTPAPER_ENV_14 23 && Envelope #14 5 x 11 1/2
#define PRTPAPER_CSHEET 24 && C size sheet
#define PRTPAPER_DSHEET 25 && D size sheet
#define PRTPAPER_ESHEET 26 && E size sheet
#define PRTPAPER_ENV_DL 27 && Envelope DL 110 x 220mm
#define PRTPAPER_ENV_C5 28 && Envelope C5 162 x 229 mm
#define PRTPAPER_ENV_C3 29 && Envelope C3 324 x 458 mm
#define PRTPAPER_ENV_C4 30 && Envelope C4 229 x 324 mm
#define PRTPAPER_ENV_C6 31 && Envelope C6 114 x 162 mm
#define PRTPAPER_ENV_C65 32 && Envelope C65 114 x 229 mm
#define PRTPAPER_ENV_B4 33 && Envelope B4 250 x 353 mm
#define PRTPAPER_ENV_B5 34 && Envelope B5 176 x 250 mm
#define PRTPAPER_ENV_B6 35 && Envelope B6 176 x 125 mm
#define PRTPAPER_ENV_ITALY 36 && Envelope 110 x 230 mm
#define PRTPAPER_ENV_MONARCH 37 && Envelope Monarch 3.875 x 7.5 in
#define PRTPAPER_ENV_PERSONAL 38 && 6 3/4 Envelope 3 5/8 x 6 1/2 in
#define PRTPAPER_FANFOLD_US 39 && US Std Fanfold 14 7/8 x 11 in
#define PRTPAPER_FANFOLD_STD_GERMAN 40 && German Std Fanfold 8 1/2 x 12 in
#define PRTPAPER_FANFOLD_LGL_GERMAN 41 && German Legal Fanfold 8 1/2 x 13 in
*-- Paper bins
#define PRTBIN_UPPER 1
#define PRTBIN_ONLYONE 1
#define PRTBIN_LOWER 2
#define PRTBIN_MIDDLE 3
#define PRTBIN_MANUAL 4
#define PRTBIN_ENVELOPE 5
#define PRTBIN_ENVMANUAL 6
#define PRTBIN_AUTO 7
#define PRTBIN_TRACTOR 8
#define PRTBIN_SMALLFMT 9
#define PRTBIN_LARGEFMT 10
#define PRTBIN_LARGECAPACITY 11
#define PRTBIN_CASSETTE 14
*-- Print qualities
#define PRTRES_DRAFT -1
#define PRTRES_LOW -2
#define PRTRES_MEDIUM -3
#define PRTRES_HIGH -4
*-- Color printer
#define PRTCOLOR_MONOCHROME 1
#define PRTCOLOR_COLOR 2
*-- Duplexing
#define PRTDUP_SIMPLEX 1
#define PRTDUP_VERTICAL 2
#define PRTDUP_HORIZONTAL 3
*-- True Type fonts
#define PRTTT_BITMAP 1 && Print True Type fonts as graphics
#define PRTTT_DOWNLOAD 2 && Download True Type fonts as soft fonts
#define PRTTT_SUBDEV 3 && Substitute device fonts for True Type
*-- FontMetric()
#DEFINE TM_HEIGHT 1
#DEFINE TM_ASCENT 2
#DEFINE TM_DESCENT 3
#DEFINE TM_INTERNALLEADING 4
#DEFINE TM_EXTERNALLEADING 5
#DEFINE TM_AVECHARWIDTH 6
#DEFINE TM_MAXCHARWIDTH 7
#DEFINE TM_WEIGHT 8
#DEFINE TM_ITALIC 9
#DEFINE TM_UNDERLINED 10
#DEFINE TM_STRUCKOUT 11
#DEFINE TM_FIRSTCHAR 12
#DEFINE TM_LASTCHAR 13
#DEFINE TM_DEFAULTCHAR 14
#DEFINE TM_BREAKCHAR 15
#DEFINE TM_PITCHANDFAMILY 16
#DEFINE TM_CHARSET 17
#DEFINE TM_OVERHANG 18
#DEFINE TM_ASPECTX 19
#DEFINE TM_ASPECTY 20
*-- Sysmetric() parameter values
#DEFINE SYSMETRIC_SCREENWIDTH 1 && Screen width
#DEFINE SYSMETRIC_SCREENHEIGHT 2 && Screen width
#DEFINE SYSMETRIC_SIZINGBORDERWIDTH 3 && Width of the sizing border around a resizable window
#DEFINE SYSMETRIC_SIZINGBORDERHEIGHT 4 && Height of the sizing border around a resizable window
#DEFINE SYSMETRIC_VSCROLLBARWIDTH 5 && Width of a vertical scroll bar
#DEFINE SYSMETRIC_VSCROLLBARHEIGHT 6 && Height of the arrow bitmap on a vertical scroll bar
#DEFINE SYSMETRIC_HSCROLLBARWIDTH 7 && Width of the arrow bitmap on a horizontal scroll bar
#DEFINE SYSMETRIC_HSCROLLBARHEIGHT 8 && Height of a horizontal scroll bar
#DEFINE SYSMETRIC_WINDOWTITLEHEIGHT 9 && Height of window title (caption) area
#DEFINE SYSMETRIC_WINDOWBORDERWIDTH 10 && Width of a window border
#DEFINE SYSMETRIC_WINDOWBORDERHEIGHT 11 && Height of a window border
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -