这两天写Win32API / C++,发现自己基本功不行了。下面为自己的理解:
// 正常定义一个整型 a
int a = 1;
// 对 a 用 & 取地址
cout << "Address of a: " << &a << endl;
// 定义一个整型指针,指向 a
int* b = &a;
// b 则是一个地址
cou...
这篇文章同样是想要继续尝试加速UI Tree的获取...不说别的了,直接说怎么实现吧。
过程
对用得上的Win32API进行封装
值得注意的是:官方文档C++中的LONG,在C#中是int,麻了。
public class Win32API
{
public struct RECT
{
public int Left;
public int ...