前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Minigui局部刷新 InvalidateRect

Minigui局部刷新 InvalidateRect

作者头像
手撕代码八百里
发布2021-09-14 10:55:26
1.5K0
发布2021-09-14 10:55:26
举报
文章被收录于专栏:猿计划猿计划

整体刷新

代码语言:javascript
复制
	InvalidateRect (hWnd, NULL, TRUE);

局部刷新

代码语言:javascript
复制
	//局部刷新菜单按钮区域结构体
	static RECT rtLast={
		left:128,
		top:421,
		right:235,
		bottom:446,
	};

	//局部刷新
	InvalidateRect (hWnd, &rtLast, TRUE);

RECT 结构: https://minigui.fmsoft.cn/api_ref/3.0.12_processes/struct__RECT.html#ad8f5e19e19f12974c9713e920ec54331

代码语言:javascript
复制
_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

大概意思:

代码语言:javascript
复制
//局部刷新菜单按钮区域结构体
static RECT rtLast={
	left:0, //矩形左上角的 x 坐标。
	top:0, //矩形左上角的 y 坐标。
	right:800, //矩形右下角的 x 坐标。
	bottom:60, //矩形右下角的 y 坐标。
};
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2021-09-09 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 整体刷新
  • 局部刷新
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档