Re: Win32Lib: Button Color

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

Derek Parnell wrote:
> This effect happens because the clearWindow call drawns a colored rectangle
> over the button area, but as soon as Windows gets any event for the button
> it redraws the button 'correctly'.
>  
> There are two main ways to get colored buttons.
> (1) Define it as an owner-drawn button and handle the special messages
>  (meaning: You do all the graphic work, but you're told when and what to
>  do).
> 
> (2) Simulate a button with a simple child window. You still get to 
>   do all the graphics, and you must handle all the keyboard and
>   mouse events too.

How about using the on paint event?

Below lies the signature of Lewis Townsend
Lewy T

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

Search



Quick Links

User menu

Not signed in.

Misc Menu