Answers

Question and Answer:

  Home  Visual C++

⟩ 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);

pBtnSample->SetWindowPos(0,0,0,100,100,SWP_FRAMECHANGED);

 226 views

More Questions for you: