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 MFC base classes provide support for ActiveX controls?
What view class enables you to use an edit control as a view?
What types of threads are supported by MFC framework?
How we can findout Memoryleaks, In what way it can be avoided
In VC++ How to transfer between one exe to another exe while running..
What is the difference between OnInitialUpdate and OnUpdate?
What is the use of CObject::Dump function ?
Tell me the work of HTREDUCE and HTZOOM
1) create ToolTip in MFC?
Explain the flow of SDI application?
What is the difference between Struts and JSF? Pls list some most suitable differences.
Does the application have more than one object? If Yes, Briefly explain.