1)How to change the size of a button at run time ?
Answer / 106743013743
Hi,
below, code is running successfully, I hope that it might be
useful for you!!!!
BOOL Csample_button_name_changeDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CButton *btnsample = (CButton *)GetDlgItem(IDC_BUTTON1);
//below, the Code to change Size of the button
btnsample->SetWindowPos(0,0,0,100,100,SWP_FRAMECHANGED);
return TRUE;
}
Code By Ctharam
| Is This Answer Correct ? | 1 Yes | 1 No |
what is functioning of DIalodDataXchange ..?
What are the types of button controls?
What is primitive and non-primitive application?
how can u change button shape at run time
What view class enables you to use an edit control as a view?
Tell me the different controls in MFC ?
What is the difference between workrer thread and UI thread
What is the command routing in MFC framework?
What is the difference between the Encapsulation and Abstraction
25 Answers HCL, Invensys, TCS, Wipro,
What is subclassing?
if i modified data in 1 view how does the other view knows
What is the difference between Extension DLL and Regular DLL?