On 31/05/07, Pedro Alves <[EMAIL PROTECTED]> wrote:
> Carsten Sørensen wrote:
> > the
> > magic number seems to be 0x40000000 - if I add that, the system colour
> > constants start working.
>
> You mean you add it to all the colors?  They are sequencial, so I guess
> that's what you mean.

Exactly.

> > I can put together a sample that demonstrates the problem if nobody
> > else has tried these constants until now.
>
> Would be nice.  I can test it on Mobile 2003.  I've never used these
> APIs before, so I wonder if there is a way to query the color from
> somewhere, and see if they always come with that offset.

Not sure, I've had a peek around MSDN but can't find anything that
enumerates the system colour constants. I've come across this little
bit of info from GetSysColorBrush
(http://msdn2.microsoft.com/en-us/library/aa453168.aspx) though -

"The values assigned to the COLOR_* flags in Windows CE are different
from the values assigned to these flags in Windows-based desktop
platforms. Therefore, specify the COLOR_* flag value, rather than the
corresponding integer value, for the nIndex parameter."

So I suspect the 0x40000000 offset is needed for all CE devices. I'll
whip up a small sample.


Regards,
Carsten Sorensen
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to