[問題] MFC Button position
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
MFC
問題(Question):
意圖更改Button B的位置,使其在Button A的右方。
使用Button的Setwindowpos()後發現,
參數列的位置是指相對於包含Button的Dlg。
於是我想用Getwindowpos()取得A的位置後加一個常數向量,
但發現Get出來的是絕對座標...
想請問取得控制元件相對於其所在Dlg的座標方法?
謝謝~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.195.6.172
→
11/06 08:43, , 1F
11/06 08:43, 1F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章