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实现Tab切换(排他)功能
原生js实现Tab切换(排他)功能 在前端的面试中,一旦遇到笔试题,基本上都会有Tab切换,今天我们来说一下如何使用原生js实现Tab切换功能。如图: 在这里插入图片描述 HTML代码: &lt;div class=&quot;wrap&quot;&gt; &lt;div class=&quot;box&quot;&gt;1&lt;/div&gt; &lt;div class=&quot;box&quot;&gt;2&lt;/div&gt; &lt;div class=&quot;box&quot;&gt;3&lt;/div&gt; &lt;div class=&quot;box&quot;&gt;4&lt;/div&gt; &lt;ul&gt; &lt;li&gt;&lt;/li&gt; &lt;
原生js实现上滑加载,下拉刷新
这是手机端常见的一个功能,可能很多人都是用框架或者插件实现。 这里,我试着用原生js实现。 这样能更明白原理与底层实现
300 0
原生js实现上滑加载,下拉刷新
javascript刷新父页面的各种方法汇总
javascript刷新父页面的各种方法汇总
138 0
浅谈浏览器渲染、回流和重绘
概要 浏览器渲染的本质; 介绍回流 reflow 和重绘 repaint; 如何优化性能;
浏览器的回流与重绘 (Reflow & Repaint)
浏览器的回流与重绘 (Reflow & Repaint)
203 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等