湖北省地方电子税务局:在VC中如何强迫当前窗口刷新

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/28 08:45:40
在VC中如何强迫当前窗口刷新。
例如:
static CRightWnd::MyFunction()
CRightWnd::MyFunction()
{
Do Some Precess;
}
我希望执行完该函数后,对应的本窗口(RightWnd)可以自动刷新。
MyFunction()是Static函数
class CtpsRightWnd : public CScrollView,
CtpsRightWnd是继承于CScrollView,

::InvalidateRect( hWnd, NULL );
::UpdateWindow( hWnd );