治皮肤过敏的药有哪些:在VC中如何强迫当前窗口刷新

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

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