InvalidateRect (hWnd, NULL, TRUE);
//局部刷新菜单按钮区域结构体
static RECT rtLast={
left:128,
top:421,
right:235,
bottom:446,
};
//局部刷新
InvalidateRect (hWnd, &rtLast, TRUE);
_RECT Struct Reference
[Win32-like data types and macros]
#include <common.h>
Data Fields
int left
int top
int right
int bottom
Detailed Description
A rectangle defined by coordinates of corners.
Note:
The lower-right corner does not belong to the rectangle, i.e. the bottom horizontal line and the right vertical line are excluded from the retangle.
See also:
PRECT, GAL_Rect
Definition at line 572 of file common.h.
Field Documentation
int bottom
The y coordinate of the lower-right corner of the rectangle.
Definition at line 589 of file common.h.
int left
The x coordinate of the upper-left corner of the rectangle.
Definition at line 577 of file common.h.
Referenced by PtInRect().
int right
The x coordinate of the lower-right corner of the rectangle.
Definition at line 585 of file common.h.
int top
The y coordinate of the upper-left corner of the rectangle.
Definition at line 581 of file common.h.
Referenced by PtInRect().
The documentation for this struct was generated from the following file:
common.h
大概意思:
//局部刷新菜单按钮区域结构体
static RECT rtLast={
left:0, //矩形左上角的 x 坐标。
top:0, //矩形左上角的 y 坐标。
right:800, //矩形右下角的 x 坐标。
bottom:60, //矩形右下角的 y 坐标。
};