Visual C++ Question:
Download Job Interview Questions and Answers PDF
How to change the Size of CButton at Runtime?
Answer:
CButton *btnsample = (CButton *)GetDlgItem(IDC_BUTTON1);///suppose IDC_BUTTON1 is the ID of CButton/
btnsample->SetWindowPos(0,0,0,100,100,SWP_FRAMECHANGED);
btnsample->SetWindowPos(0,0,0,100,100,SWP_FRAMECHANGED);
Download Visual C++ Interview Questions And Answers
PDF
Previous Question | Next Question |
How to Enable and Disable CButton at runtime? | How to change the position of Button at runtime? |