I'm trying to use DrawThemeIcon to render a disabled bitmap on an owner draw button using XP themes. The API doc implies that I can use the state PBS_DISABLED to apply the disabled effect to the bitmap. This does not appear to work. Is this a valid assumption. If not, what is the recommended way to accomplish this

DrawThemeIcon
DPowers1
From what I understand, PBS_DISABLED is only to draw the disabled button and text, it may not work for bitmaps. I am not fully sure of this - in the past, I've not been very happy with how DrawThemeIcon worked in some scenarios, and eventually I ended up using straight GDI calls.
Martin Stettner
Tomas Srna
My scenario was different from yours, and I didn't need to draw a disabled bitmap.
But for your situation, I believe you can use DrawState with DSS_DISABLED.