Visual C++ Question:
Download Questions PDF

How to change the position of Button at runtime?


Assuming that you have set the button's ID as IDC_BTNSAMPLE in the resource editor :-
CButton *pBtnSample = (CButton *)GetDlgItem(IDC_BTNSAMPLE);

Download Visual C++ Interview Questions And Answers PDF

Previous QuestionNext Question
How to change the Size of CButton at Runtime?How to change the Properties of a Button at runtime?