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 |
If there is more than 100 control in a window how we can change the Taborder of a controls
how can u change button shape at run time
How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?
1)To Remove WS_MINIMIZEBOX in a Frame ?
How we call a dialog in another dialog?
Difference between Debug and Release versions?
I can i set size of integer variable should be fixed for different operating systems(Ex i want integer size is 2bytes in OS)
1.Get string1,string2,string3 1.add string1 and 2,string1 and 3. 2.replace vowels with T 3.count number of T. 4.remove T 5.COPY string1 to stringf. 6.restore string1. print the following 1.Number of T 2.StringF 3.string1+string2+string3 Use pointers and functions
How to convert a CString variable to char* or LPTSTR?
What is LoadLibrary function returns?
what is the difference between SDI and MDI
15 Answers CMC, HCL, Siemens,
How to handle RTTI in MFC ?