GetForeColor method


Available for all objects except Image, HScroll, VScroll, ToolBar, StatusBar ProgressBar, Slider, TabStrip, UpDown, Animate, IpAddress, ImageCombo, Calendar, DateTime and HotKey.

Prototype

GetForeColor Proto hWnd:HWND

Syntax

Invoke GetForeColor, hWnd

Function

Gets the ForeColor property for an object.

Parameters

hWnd

Handle to the object.

Return value

Eax returns the current fore color for the object.


REMARKS
: The most significant byte of Eax specifies whether the color is an RGB value (00H) or a system color (80H), while the other three bytes are the corresponding RGB values. For example, a value 00FF0000H means blue, 0000FF00H means green and 000000FFH means red, while 80000005H means the system color number 5 (COLOR_WINDOW).