Win_GetStockObject

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > Windows API >

Win_GetStockObject

 

Description

 

Retrieves a handle to one of the stock pens, brushes, fonts, or palettes.

 

Syntax

 

n = Win_GetStockObject(fnObject)

 

Returns

 

Number.

 

Parameters

 

Name

Type

Optional

Meaning

fnObject

Number

No

The type of stock object. This parameter can be one of the following values

 

%WHITE_BRUSH

%LTGRAY_BRUSH

%GRAY_BRUSH

%DKGRAY_BRUSH

%BLACK_BRUSH

%NULL_BRUSH

%HOLLOW_BRUSH

%WHITE_PEN

%BLACK_PEN

%NULL_PEN

%OEM_FIXED_FONT

%ANSI_FIXED_FONT

%ANSI_VAR_FONT

%SYSTEM_FONT

%DEVICE_DEFAULT_FONT

%DEFAULT_PALETTE

%SYSTEM_FIXED_FONT

%DEFAULT_GUI_FONT

%DC_BRUSH

%DC_PEN

%STOCK_LAST

 

Remarks

 

Restrictions

 

See also

 

Examples