Minigui局部刷新 InvalidateRect

简介: Minigui局部刷新 InvalidateRect

整体刷新

InvalidateRect (hWnd, NULL, TRUE);

局部刷新

//局部刷新菜单按钮区域结构体
  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

_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 坐标。
};
目录
打赏
0
0
0
0
4
分享
相关文章
使用原生js实现上拉加载,下拉刷新
使用原生js实现上拉加载,下拉刷新
183 0
|
6月前
|
JQuery——动态添加元素导致点击事件失效
JQuery——动态添加元素导致点击事件失效
49 0
前端中的事件委托
前端中的事件委托
84 0
|
9月前
|
原生js如何实现上拉加载下拉刷新?
原生js如何实现上拉加载下拉刷新?
51 0
前端小知识:事件委托及其应用
本文通过实际案例介绍前端中的事件委托及其应用。
94 0
原生js实现上滑加载,下拉刷新
这是手机端常见的一个功能,可能很多人都是用框架或者插件实现。 这里,我试着用原生js实现。 这样能更明白原理与底层实现
301 0
原生js实现上滑加载,下拉刷新
原生js中的事件监听方法
好久没有使用过原生 js 中的监听方法,竟然发现有些陌生,几个方法之间的区别也有些混乱了。不过看过了API文档,又将他们之间的区别和用法理清楚了,这里进行总结。
2109 0