MSDN如是说:
The LockWindowUpdate function disables or enables drawing in the specified window. Only one window can be locked at a time.
BOOL LockWindowUpdate(
HWND hWndLock // handle to window
);
Parameters
hWndLock
[in] Specifies the window in which drawing will be disabled. If this parameter is NULL, drawing in the locked window is enabled.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero, indicating that an error occurred or another window was already locked.
通俗的说,就是这个函数把参数---句柄--所关联的窗口锁住了,不再让他继续更新了。
GetDCEx
The GetDCEx function retrieves a handle to a display device context (DC) for the client area of a specified window or for the entire screen. You can use the returned handle in subsequent GDI functions to draw in the DC.
This function is an extension to the GetDC function, which gives an application more control over how and whether clipping occurs in the client area.