※ 引述《"ycliaw(C.K.)》之銘言:
: 小乖 <
jeffhu...@cszone.cc.ntu.edu.tw> wrote:
: Maybe you have to write...
: CButton *theButton = (CButton *)GetDlgItem(<resource id>);
: theButton->GetWindowRect(...);
: the member data: m_ctrlbutton1 is not the object on dialog...
: Good Luck to You
: ycliaw
: ---
Well, 若不想這麼麻煩, 請善用 AppWizard 裏的 DDX_Control(),
按 Ctrl-W 把它加到 member variables 裏.
--
※ Origin: 程式設計樂園 ◆ From: mach09.csie.ntu.edu.tw