在VC ++中刷新窗口 [英] Refreshing window in vc++

查看:268
本文介绍了在VC ++中刷新窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我希望您能回答以下问题.

问题:当我运行应用程序时,我得到一个主窗口(例如window1),当我单击主窗口上的图标时,它的顶部又出现了另一个窗口(例如window2).

我想刷新window2.如果我按f5,它会刷新.但是我想在程序的帮助下做到这一点.我有window2的手柄.


vc ++中是否有任何功能可以帮助刷新窗口?我有相关窗口的处理程序.

在此先谢谢您.

Hi guys,

I would like your response to a question given below.

Question: when i run my application i get a primary window (say window1),when i click an icon present on primary window, i get another window ( say window2) on the top of it.

I want to refresh window2.if i hit f5,it gets refreshed. but i want to do it with the help of program. i have handle of window2.


Is there any function in vc++ that helps to refresh window ? i have handler for window in question.

Thanks in advance.

推荐答案

您可以使用 ^ ], RedrawWindow [ ^ ].
You can use functions like InvalidateRect[^], Invalidate[^] or RedrawWindow[^].


这篇关于在VC ++中刷新窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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