winapi - OwnerDraw with WS_EX_COMPOSITED under XP -
i have static command has ss_ownerdraw , ss_notify flag when crated. parent window has ws_ex_composited flag.
under windows xp, not drawn correctly, image below showed (the right-top rectangle):
but under windows 7, drawn correctly, image below showed (the corss "x" on right-top):
how prepare problem in xp? furthermore, causes problem (in xp)?
msdn createwindowex() says this:
with ws_ex_composited set, descendants of window bottom-to-top painting order using double-buffering. bottom-to-top painting order allows descendent window have translucency (alpha) , transparency (color-key) effects, if descendent window has ws_ex_transparent bit set. double-buffering allows window , descendents painted without flicker.
i.e. kid static command should have ws_ex_transparent set.
winapi doublebuffered ownerdraw
No comments:
Post a Comment