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 坐标。
};
目录
相关文章
|
7月前
|
JavaScript
页面刷新
页面刷新
27 1
|
10月前
局部刷新功能
局部刷新功能
31 0
|
XML 前端开发 JavaScript
Ajax刷新
Ajax刷新
76 0
Ajax刷新
|
前端开发
ajax无刷新删除
ajax无刷新删除
55 0
|
Web App开发 算法 前端开发
前端局部刷新
本文讲述除目前流行的`virtual-dom`更新界面外,另外一种不需要保留虚拟`dom`树,同时又可以高性能的更新界面的方案
4320 0
|
JavaScript 前端开发 .NET
|
前端开发 JavaScript