用mfc的陳述句取控制元件坐標
陳述句是
RECT r2;
::GetWindowRect(h2, &r2);
結果是,發現left top有大量的負值。螢屏也就是1920*1080 ,不過有兩個電腦螢屏
如下:
-------------------控制元件1計算--------------------
r1 = left = 16, top = 21, righ = 993, bottom = 762
r2 = left = 1630, top = 843, righ = 1900, bottom = 893
-------------------控制元件2計算--------------------
r1 = left = 16, top = 21, righ = 993, bottom = 762
r2 = left = -858993460, top = -858993460, righ = -858993460, bottom = -858993460
謝謝............
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/284754.html
標籤:基礎類
下一篇:Activex 組件被攔截