Paul Reynolds
March 18th, 1998, 08:10 AM
The code for the flat owner drawn buttons does not work properly when using a bitmap. When the bitmap button is in a disabled state, no draw action is
undertaken at all. A quick solution to this is to move the actual draw code contained in DrawItem (i.e. the else part of the if(!hBitmap)), and put it at the bottom of the function. However, having done this the disabled/greyed out state for the bitmap does not work, but at least you get to see a bitmap rather than a grey block. The only states that the button appears to exhibit are enabled and pressed.
undertaken at all. A quick solution to this is to move the actual draw code contained in DrawItem (i.e. the else part of the if(!hBitmap)), and put it at the bottom of the function. However, having done this the disabled/greyed out state for the bitmap does not work, but at least you get to see a bitmap rather than a grey block. The only states that the button appears to exhibit are enabled and pressed.