hi all :)

i would replace a bmp of a button with a grayed one, but when i disable the button, it comes entirely grayed by widows and I wuold like to use my grayed bitmap. If i try to use WM_ENABLE, it disappear.

if some help, thx B7
Posted on 2004-05-30 05:40:58 by Bit7
Hello Bit7

have you tried invoke EnableWindow,<handle>,FALSE or
invoke SendMessage,<handle>,TB_ENABLEBUTTON,308,FALSE for toolbar buttons?

best regards,

Posted on 2004-05-30 10:29:51 by czDrillard
Yes, it's a standard button with a little squares bitmap prepared as grayed. Iv'e loaded the grayed bitmap and applied to the button with

call SendDlgItemMessageA, , IDC_MAIN_SPLI, \

But if i use Enablebitmap with FALSE, the bitmap i've prepared comes entirely dark gray, overwriting my grayed bitmap.

Posted on 2004-05-31 14:20:54 by Bit7