Predefined Constants

This section lists the following predefined constants listed in the stdincl.h file located in the ResCompiler home directory:

Accelerator Key Constants

Key Description

Setting–Hex

Setting–Text

Tab

$0009$

KEY_TAB

<Escape>

$001B$

KEY_ESCAPE

<Delete>

$007F$

KEY_DELETE

<Up Arrow>

$012D$

KEY_UP_ARROW

<Down Arrow>

$012E$

KEY_DOWN_ARROW

<Right Arrow>

$012F$

KEY_RIGHT_ARROW

<Left Arrow>

$0130$

KEY_LEFT_ARROW

<Page Up>

$0131$

KEY_PAGE_UP

<Page Down>

$0132$

KEY_PAGE_DOWN

<Home>*

$0133$

KEY_HOME

<End>*

$0134$

KEY_END

Ctrl+<Home>

$0135$

KEY_CTRL_HOME

Ctrl+<End>

$0136$

KEY_CTRL_END

<Insert>

$0138$

KEY_INSERT

Ctrl+<Right Arrow>

$0139$

KEY_CTRL_RIGHT_ARROW

Ctrl+<Left Arrow>

$013A$

KEY_CTRL_LEFT_ARROW

<Backtab>

$013B$

KEY_BACKTAB

<Keypad 0>

$013E$

KEY_KEYPAD_0

<Keypad 1>

$013F$

KEY_KEYPAD_1

<Keypad 2>

$0140$

KEY_KEYPAD_2

<Keypad 3>

$0141$

KEY_KEYPAD_3

<Keypad 4>

$0142$

KEY_KEYPAD_4

<Keypad 5>

$0143$

KEY_KEYPAD_5

<Keypad 6>

$0144$

KEY_KEYPAD_6

<Keypad 7>

$0145$

KEY_KEYPAD_7

<Keypad 8>

$0146$

KEY_KEYPAD_8

<Keypad 9>

$0147$

KEY_KEYPAD_9

F1

$014B$

KEY_F1

F2

$014C$

KEY_F2

F3

$014D$

KEY_F3

F4

$014E$

KEY_F4

F5

$014F$

KEY_F5

F6

$0150$

KEY_F6

F7

$0151$

KEY_F7

F8

$0152$

KEY_F8

F9

$0153$

KEY_F9

F10

$0154$

KEY_F10

F11

$0155$

KEY_F11

F12

$0156$

KEY_F12

Keypad asterisk (*)

$0174$

KEY_KEYPAD_STAR

Keypad minus sign (-)

$0175$

KEY_KEYPAD_MINUS

Keypad plus sign (+)

$0176$

KEY_KEYPAD_PLUS

Keypad forward slash (/)

$0177$

KEY_KEYPAD_SLASH

Shift

$1000$

KEY_SHIFT

Ctrl

$2000$

KEY_CTRL

Alt

$4000$

KEY_ALT

* In the GUI Guide, the hex key settings for the <Home> and <End> keys were incorrectly defined as $0135$ and $0136$, respectively.

(back to the top)

 

Character Set Constants

Character Set

Platform

Value

Setting–Text

ANSI

All Windows

0

CS_ANSI

DEFAULT

All Windows

1

CS_DEFAULT

SYMBOL

All Windows

2

CS_SYMBOL

SHIFTJIS

All Windows

3

CS_SHIFTJIS

HANGEUL

All Windows

4

CS_HANGEUL

GB2312

All Windows

5

CS_GB2312

CHINESEBIG5

All Windows

6

CS_CHINESEBIG5

OEM

All Windows

7

CS_OEM

JOHAB

Windows 95 only

8

CS_JOHAB

HEBREW

Windows 95 only

9

CS_HEBREW

ARABIC

Windows 95 only

10

CS_ARABIC

GREEK

Windows 95 only

11

CS_GREEK

TURKISH

Windows 95 only

12

CS_TURKISH

THAI

Windows 95 only

13

CS_THAI

EASTEUROPE

Windows 95 only

14

CS_EASTEUROPE

RUSSIAN

Windows 95 only

15

CS_RUSSIAN

BALTIC

Windows 95 only

16

CS_BALTIC

MAC

Macintosh

17

CS_MAC

(back to the top)

 

Color Name Constants

Color

Setting–Text

Setting–RGB Specification

Black

COLOR_BLACK

RGB(0,0,0)

Blue

COLOR_BLUE

RGB(0,0,255)

Cyan

COLOR_CYAN

RGB(0,255,255)

Dark Gray

COLOR_DKGRAY

RGB(64,64,64)

Gray

COLOR_GRAY

RGB(128,128,128)

Green

COLOR_GREEN

RGB(0,255,0)

Light Gray

COLOR_LTGRAY

RGB(192,192,192)

Magenta

COLOR_MAGENTA

RGB(255,0,255)

Red

COLOR_RED

RGB(255,0,0)

White

COLOR_WHITE

RGB(255,255,255)

Yellow

COLOR_YELLOW

RGB(255,255,0)

(back to the top)

Current Unit Constants

Unit

Value

Setting–Text

Pixel

0

UNITS_PIXELS

Char

1

UNITS_CHARS

Semichar

2

UNITS_SEMICHARS

(back to the top)


Event Mask Constants

Event(s) Reported

Setting–Hex

Setting–Text

Activation messages.

$40000000$

EM_ACTIVATE

All events.

$FFFFFFFF$

EM_ALL

Check box or radio button check or uncheck.

$02000000$

EM_CHECK

Window close.

$00000020$

EM_CLOSE

Edit or list edit modified

$00400000$

EM_EDITMODIFY

Edit, list edit, or custom edit focus change.

$00800000$

EM_EDITFOCUS

Focus movement in or out of a window.

$00000004$

EM_FOCUS

Key press.

$00000400$

EM_CHAR

List item click or double-click.

$01000000$

EM_LISTCLICK

Mouse button press.

$00000040$

EM_MOUSEDOWN

Mouse button release.

$00000080$

EM_MOUSEUP

Mouse double-click.

$00000200$

EM_MOUSEDOUBLE

Mouse movement.

$00000100$

EM_MOUSEMOVE

None.

$00000000$

EM_NONE

Scroll bar position changed by clicking the scroll bar arrows.

$00100000$

EM_SCROLLPOS

Scroll bar position by dragging the scroll bar thumb.

$00200000$

EM_SCROLLTRACK

System events.

$80000000$

EM_SYSEVENT

Window resize.

$00000008$

EM_SIZE

(back to the top)


Scroll Bar Orientation Constants

Scroll Bar

Value

Setting–Text

Vertical

0

VERTICAL

Horizontal

1

HORIZONTAL

(back to the top)


Text Justification Constants

Justification

Setting–Hex

Setting–Text

Native (or Default)

$0000$

JUSTIFICATION_NATIVE

Left

$2000$

JUSTIFICATION_LEFT

Center

$4000$

JUSTIFICATION_CENTER

Right

$8000$

JUSTIFICATION_RIGHT

(back to the top)