win32汇编中关于函数RedrawWindow和ValidateRect。

来源:百度知道 编辑:UC知道 时间:2024/06/25 01:03:15
win32汇编中,我想刷新窗口,在网上搜了一下,可以用两个函数,RedrawWindow和ValidateRect,结果发现都不对。我是在要刷新时候,运用invoke ValidateRect,hWin,NULL,FALSE ,结果发现没反应,调用invoke RedrawWindow,hWnd,addr WindowZone,NULL,RDW_INVALIDATE,还是没有反应,请问这是为什么?

不是ValidateRect,应当调用 InvalidateRect

InvalidateRect,窗口句柄,刷新区域 若为NULL刷新整个窗口

ValidateRect关于MSDN帮助文档

The ValidateRect function validates the client area within a rectangle by removing the rectangle from the update region of the specified window.

现在还学Win32汇编~~囧,我学C/C++/VC/8086及386保护模式汇编,计算机网络,SQL 能把这些精通就够了。
要想开发软件 最好选择VC或Delphi