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 坐标。
};
目录
相关文章
|
数据库 Windows
超详细步骤解析:从零开始,手把手教你使用 Visual Studio 打造你的第一个 Windows Forms 应用程序,菜鸟也能轻松上手的编程入门指南来了!
【8月更文挑战第31天】创建你的第一个Windows Forms (WinForms) 应用程序是一个激动人心的过程,尤其适合编程新手。本指南将带你逐步完成一个简单WinForms 应用的开发。首先,在Visual Studio 中创建一个“Windows Forms App (.NET)”项目,命名为“我的第一个WinForms 应用”。接着,在空白窗体中添加一个按钮和一个标签控件,并设置按钮文本为“点击我”。然后,为按钮添加点击事件处理程序`button1_Click`,实现点击按钮后更新标签文本为“你好,你刚刚点击了按钮!”。
2191 1
|
前端开发 rax 网络协议
x64汇编语言与逆向工程基础指南(一)
x64汇编语言与逆向工程基础指南(一)
3273 0
|
存储 NoSQL Redis
Redis数据结构之——ziplist
Redis数据结构之——ziplist
win32编程 -- 系统菜单及右键菜单
win32编程 -- 系统菜单及右键菜单
463 1
|
程序员 API C语言
超详细实现【贪吃蛇】(1)
超详细实现【贪吃蛇】(1)
433 2
|
算法 大数据 Linux
深入理解Linux内核的进程调度机制
【4月更文挑战第30天】操作系统的核心职能之一是有效地管理和调度进程,确保系统资源的合理分配和高效利用。在众多操作系统中,Linux因其开源和高度可定制的特点,在进程调度机制上展现出独特优势。本文将深入探讨Linux内核中的进程调度器——完全公平调度器(CFS),分析其设计理念、实现原理及面临的挑战,并探索未来可能的改进方向。
|
API C# Windows
C#实现操作Windows窗口句柄:遍历、查找窗体和控件【窗口句柄最全总结之一】
C#对Windows窗口或窗口句柄的操作,都是通过 P/Invoke Win32 API 实现的,DllImport引入Windows API操作窗口(句柄),可以实现枚举已打开的窗口、向窗口...
7511 0
C#实现操作Windows窗口句柄:遍历、查找窗体和控件【窗口句柄最全总结之一】
|
存储 编解码 自然语言处理
史诗级计算机字符编码知识分享,万字长文,一文即懂!
前一阵跟同事碰到了字符乱码的问题,了解后发现这个问题存在两年了,我们程序员每天都在跟编码打交道,但大家对字符编码都是一知半解:“天天吃猪肉却很少见过猪跑”,今天我就把它彻底讲透!
11890 3
|
Windows
win32编程 -- windows绘图操作
win32编程 -- windows绘图操作
314 0
win32编程 -- 鼠标消息
win32编程 -- 鼠标消息
447 0
win32编程 -- 鼠标消息