123456

 

2011年11月10日

A Revolutionary New Approach to Custom Drawn Menus

摘要: 收藏!Rev 1.2IntroductionChanging the default appearance of elements of the Windows GUI has been a never ending challenge for Windows programmers since the first release of the Windows API. And anyone who has seriously tried to change the appearance of menus (beyond simple owner-draw techniques) will k 阅读全文

posted @ 2011-11-10 16:41 hgy413 阅读(140) 评论(0) 推荐(0) 编辑

SelectClipRgn

摘要: SelectClipRgn(NULL)或SelectClipRgn(NULL, RGN_COPY)表示当前选中全部区域,cwindowdc就是window区域,cclientdc就是client区域每次绘制前都可以用SelectClipRgn来选中一块区域,再绘制,再选中一块区域,再绘制,不第二次用SelectClipRgn选中,上次绘制的不会被擦除,当然可以结合ExcludeClipRect来绘制。注意使用gdi+时,一定要先用SelectClipRgn选定区域,再生成graphics g(hdc),不然g 就默认用上次的区域绘制了!! 阅读全文

posted @ 2011-11-10 10:38 hgy413 阅读(269) 评论(0) 推荐(0) 编辑

导航