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 |
How to update windows title bar dynamically?
How many types of dialog box are their
what are the feauters of CObject
what is the difference between SDI and MDI
15 Answers CMC, HCL, Siemens,
How to update all the views whenver document got updated ?
what is the use of Mutex and critical section
1)To Remove WS_MINIMIZEBOX in a Frame ?
What is LPCTSTR? What does LP denote it?
1)How to load an icon on a button as Dynamically ?
what is the use of CWinApp class?
1)how to Display the File Dialog Box, in MFC ?
If application hangs while SendMessage is waiting for the result, how you handle it?