Click to See Complete Forum and Search --> : Bitmap Button Grayed?


JensE
September 23rd, 2003, 09:51 AM
Hi everybody.

I've got a simple problem, but I still have'nt found a resolution: If I disable a bitmap button (with styles BS_PUSHBUTTON and BS_BITMAP) using EnableWindow(hHandle, false) and the bitmap is already loaded and displayed correctly, the button shows only a gray rectangle and not the appearance we know from disabled buttons in other applications (where you can still see the shape of the bitmap, its only grayed).
There seems to be no button style which can solve the problem. Has anyone an idea?

Thank you for your replies!

poccil
September 23rd, 2003, 11:30 AM
The appearance of the button depends on the bitmap's look, particularly its colors. Can you show us the button's bitmap?

JensE
September 24th, 2003, 06:01 AM
Sorry, I cannot show the bitmap 'cause I've got no acces to my PC now.
The background color of the bitmap is (RGB): 210, 210, 200. It's only an approach to the standard windows gray I figured out with Photoshop:)
Could this be the reason? The bitmap is an indexed color bitmap I created with the resource editor of Visual C++ 6.0. I loaded the bitmap with the LoadBitmap() function and passed its return value (handle to bitmap) as a parameter to the Message BM_SETIMAGE.

Bye,

Jens.

JensE
September 25th, 2003, 12:57 PM
*PUSH*