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 |
Whats is DDX & DDV in MFC?
How we call a dialog in another dialog?
How we can findout Memoryleaks, In what way it can be avoided
Does the application have more than one object? If Yes, Briefly explain.
What is subclassing?
What is model and modeless dialog box ? Give some examples?
What is a message map, and what is the advantage of a message map over virtual functions?
Tell us something about MFC?
What is the difference between Extension DLL and Regular DLL?
What is CSingleDocTemplate?
i have created runtime menu -- ( admistrator ->managepackage,manage module). but now i want to open a dialog when i select manage package and any other diaolg when selecting manage module ( whole selection is at run time only ) . Please HELP .its urgently required
List out the parameters of WinMain Function.