Floodfill 替换为 GDI?
我的应用程序有一个静态控件,里面有一个选项卡控件。它看起来像这样: 替代文本 http://img834.imageshack.us/img834/5645/topbar.png< /a>
并且我想处理顶部栏的绘制事件,以便在它绘制自身(及其子项)后,让它填充看起来更像这样:
alt text http://img230.imageshack.us/img230/9620/topbarb.png
鉴于我对顶栏进行了子类化,并且可以覆盖任何它的事件,我该怎么做?
谢谢
My application has a static control which inside has a tab control. It looks like this:
alt text http://img834.imageshack.us/img834/5645/topbar.png
and I want to handle the topbar's paint event so that after it has drawn itself (and its children), have it floodfill to look more like this:
alt text http://img230.imageshack.us/img230/9620/topbarb.png
Given that I'v subclassed the topbar and can override any of its events, how could I do this?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我尝试的第一件事是填写它以响应
WM_ERASEBKGND
(我会使用FillRect
,而不是FloodFill
)。The first thing I'd try would be to fill it in response to
WM_ERASEBKGND
(and I'd useFillRect
, notFloodFill
).