StockObjects Enumeration

Definition

Namespace: DevCase.Win32.Enums
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public enum StockObjects

Remarks

Members

BrushWhite 0 White brush.
BrushLightGray 1 Light gray brush.
BrushGray 2 Gray brush.
BrushDarkGray 3 Dark gray brush.
BrushBlack 4 Black brush.
BrushNull 5 Null brush (equivalent to BrushHollow).
BrushHollow 5 Hollow brush (equivalent to BrushNull).
PenWhite 6 White pen.
PenBlack 7 Black pen.
PenNull 8 Null pen. The null pen draws nothing.
FontOemFixed 10 Original equipment manufacturer (OEM) dependent fixed-pitch (monospace) font.
FontAnsiFixed 11 Windows fixed-pitch (monospace) system font.
FontAnsiVar 12 Windows variable-pitch (proportional space) system font.
FontSystem 13 System font. By default, the system uses the system font to draw menus, dialog box controls, and text. The default system font is Tahoma.

It is not recommended that you use DEFAULT_GUI_FONT or SYSTEM_FONT to obtain the font used by dialogs and windows.

FontDeviceDefault 14 Device-dependent font.
PaletteDefault 15 Default palette. This palette consists of the static colors in the system palette.
FontSystemFixed 16 Fixed-pitch (monospace) system font.

This stock object is provided only for compatibility with 16-bit Windows versions earlier than 3.0.

FontGuiDefault 17 Default font for user interface objects such as menus and dialog boxes. The default font is Tahoma. It is not recommended that you use DEFAULT_GUI_FONT or SYSTEM_FONT to obtain the font used by dialogs and windows.
BrushDeviceContext 18 Solid color brush. The default color is white.

The color can be changed by using the SetDCBrushColor function.

PenDeviceContext 19 Solid pen color. The default color is black.

The color can be changed by using the SetDCPenColor function.

See Also