隐藏图像时如何刷新窗口? [英] How to Refresh Window while Hiding a Image?

查看:101
本文介绍了隐藏图像时如何刷新窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友
我正在使用vc6创建一个应用程序,并且其中m在BitBlt和CClientDC的帮助下显示bmp.现在,在某些按钮上单击我要隐藏它".m在OnPaint()上显示此bmp.

有什么方法可以取消选择bmp以将其隐藏吗?
问候
Yogesh

Hello Friends
I am Creating an application using vc6 and In that m displaying a bmp with the help of BitBlt andCClientDC.Now,On some button click I want to Hide it.And m displaying this bmp on OnPaint().

Is there any way to deselect the bmp to hide it?
Regards
Yogesh

推荐答案

尝试在按钮单击时调用Invalidate,它将强制执行OnPaint.跳过BitBlt(使用标记或其他指示其应隐藏的时间)
Try calling Invalidate on button click, it will force OnPaint. Skip BitBlt (use a flag or something to indicate when it should be hidden)


这篇关于隐藏图像时如何刷新窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆