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 the size of class
How many types of dialog box are their
What is mfc class hierarchy?
What is the difference between hinsrtance and hprevinstance in WinMain function?
Hi All, I have created one MFC Dialog Based application.now if i am running the application its working fine,instead of closing he application i minimized the application,if i run the application again,i am getting the Dialog. I want to prevent the calling of application multiple times. please give me the code and let me know in which method i need to make changes. Praveer
How can we create thread in MFC framework?
How to find the mouse entering an image?..while entering need to display next image...
is it possible to display a window .without using windowclass
How can i change the color of a dropdowncombobox elements
how can u change button shape at run time
what message is sent to an application when the user presses the primary button?
what is the difference between SDI and MDI
15 Answers CMC, HCL, Siemens,