开发者

How do I draw my own submenu arrow in owner draw menus (and prevent windows from painting its arrow on top of mine)

开发者 https://www.devze.com 2022-12-28 01:00 出处:网络
Windows seems to draw the submenu arrow after I have done my painting i开发者_Python百科n WM_DRAWITEM, how can I stop windows from drawing the arrow?See Owner Drawing the Submenu Arrow on CodeGuru.

Windows seems to draw the submenu arrow after I have done my painting i开发者_Python百科n WM_DRAWITEM, how can I stop windows from drawing the arrow?


See Owner Drawing the Submenu Arrow on CodeGuru.

In a nutshell, the OS always draws the arrow after you are done drawing the menu item, but you can use ExcludeClipRect() to exclude the menu item's rectangle from the HDC's drawable area after you are done drawing inside of it, so that the OS can't draw over top of your drawing.

0

精彩评论

暂无评论...
验证码 换一张
取 消