黑云鱼:在VC中如何强迫当前窗口刷新

来源:百度文库 编辑:高考问答 时间:2024/05/12 19:44:54
在VC中如何强迫当前窗口刷新。
例如:
static CRightWnd::MyFunction()
CRightWnd::MyFunction()
{
Do Some Precess;
}
我希望执行完该函数后,对应的本窗口(RightWnd)可以自动刷新。
MyFunction()是Static函数
class CtpsRightWnd : public CScrollView,
CtpsRightWnd是继承于CScrollView,

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