Re: Value of CLR_INVALID?

new topic     » goto parent     » topic index » view thread      » older message » newer message

You were correct....
According to this *huge* list of Windows constants and such,

Public Const CLR_INVALID = &HFFFF

Of course, that still doesn't solve your problem....

Greg

"Cuny, David@DSS" wrote:

> Does anyone know what the correct value of CLR_INVALID is supposed to be?
>
> EX12 in Win32Lib was reporting an error. The offending line was:
>
>    if c_func(xSetTextColor, {hdc, window_font[id][FontColor]} ) =
> CLR_INVALID
>
> The SetTextColor routine returns the prior color of the device context, or
> CLR_INVALID if there was an error. The problem was that CLR_INVALID was
> defined:
>
>    CLR_INVALID = #FFFF
>
> Which is actually a valid color (BrightYellow). So when the text is drawn in
> a different color following text in bright yellow causes Win32Lib to report
> an error.
>
> I've taken a look in the files I've got, but I don't see the constant
> defined anywhere. The closest I can find are:
>
>    CLR_NONE = #FFFFFFFF
>    CLR_DEFAULT = #FF000000
>
> Any ideas?
>
> Thanks!
>
> -- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu