Hello everybody,

I can't seem to get the following API to work:

invoke SetSysColors,1,COLOR_ACTIVECAPTION,00ffffffh

Get last error always returns Invalid Parameter :confused:

any suggestions appreciated.

best regards,

czDrillard
Posted on 2003-04-23 22:49:52 by czDrillard
The color is supposed to be a pointer to an array, not a color value. i.e.

mov eax,00ffffffh
mov Color,eax

invoke SetSysColors,1,COLOR_ACTIVECAPTION,ADDR Color

EDIT: Actually the color flags need an array too

mov Color,00ffffffh
mov Flags,COLOR_ACTIVECAPTION

invoke SetSysColors,1,ADDR Flags,ADDR Color
Posted on 2003-04-23 22:58:39 by donkey
Thanks for your reply donkey:alright: works now!

Btw, I should have known about the pointers to array. I first looked this function up in the SDK...but something didn't register and I went ahead using constant values:o

Thanks again and best regards,

czDrillard
Posted on 2003-04-24 08:50:39 by czDrillard