我刚刚看完Charles Petzold书的第四章.我理解:
一些函数可以使整个显示区域无效(或有效),如InValidateRect, ValidateRect, ...
但是,另一些函数似乎只是使部分显示区域无效(或有效),如BeginPaint,...我想问:
有没有哪位朋友整理过这方面的函数,可以系统地罗列一下!!
一些函数可以使整个显示区域无效(或有效),如InValidateRect, ValidateRect, ...
但是,另一些函数似乎只是使部分显示区域无效(或有效),如BeginPaint,...我想问:
有没有哪位朋友整理过这方面的函数,可以系统地罗列一下!!
The ValidateRect function validates the client area within a rectangle by removing the rectangle from the update region of the specified window. BOOL ValidateRect(
HWND hWnd, // handle to window
CONST RECT *lpRect // validation rectangle coordinates
);
Parameters
hWnd
[in] Handle to the window whose update region is to be modified. If this parameter is NULL, the system invalidates and redraws all windows and sends the WM_ERASEBKGND and WM_NCPAINT messages to the window procedure before the function returns.
lpRect
[in] Pointer to a RECT structure that contains the client coordinates of the rectangle to be removed from the update region. If this parameter is NULL, the entire client area is removed.
BeginPaint
The BeginPaint function prepares the specified window for painting and fills a PAINTSTRUCT structure with information about the painting. HDC BeginPaint(
HWND hwnd, // handle to window
LPPAINTSTRUCT lpPaint // paint information
);Parameters
hwnd
[in] Handle to the window to be repainted.
lpPaint
[out] Pointer to the PAINTSTRUCT structure that will receive painting information.