Mètode GetForeColor


Disponible per a tots els objectes excepte Image, HScroll, VScroll, ToolBar, StatusBar ProgressBar, Slider, TabStrip, UpDown, Animate, IpAddress, ImageCombo, Calendar, DateTime i HotKey.

Sintaxi

Invoke GetForeColor, hWnd

Funció

Llegeix la propietat ForeColor d'un objecte.

Paràmetres

hWnd

"Handle" de l'objecte.

Valor de retorn

Eax torna el color actual del text i/o pinzell de l'objecte.


OBSERVACIONS
: El byte més significatiu del registre Eax indica si el color és un valor RGB (00H) o un color del sistema (80H), mentre que els tres bytes restants són els corresponents valors RGB. Per exemple, un valor 00FF0000H significa blau, 0000FF00H significa verd i 000000FFH significa vermell, mentre que 80000005H significa el color del sistema número 5 (COLOR_WINDOW).