On 12/7/99 12:34 PM, Michael S. Davis at [EMAIL PROTECTED] wrote:
> I have an application where I want to have some
> buttons that are dark with light text.
>
> I know I can just create bitmaps for the buttons but my problem is that
> I need to change the text. I cannot have bitmaps for every
> possible text value. Also, the text is not known at compile time.
> The user can change the text on the buttons.
>
> This is rather easy for standard light with dark text. But I need
> some suggestions how to create dark buttons with light text, where
> the text can be changed.
>
> Any ideas?
>
Take a look at the function "WinDrawInvertedChars" .. you might be able to
just draw the text in place on black buttons with a bit of calculating for
the position.
HTH,
-- Lou
_________________________________________________________________
Lou Krieg, President Tel: (802) 865-2728
Green Mountain Software Corporation Fax: (802) 865-2468
85 Prim Road - Suite 302, PO Box 700 Internet: [EMAIL PROTECTED]
Colchester, Vermont 05446-0700 http://www.GMSW.com