1)How to change the size of a button at run time ?



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

Post New Answer

More MFC Interview Questions

how u can move CDC pointer to one line in cview?

2 Answers  


How many types of dialog box are their

10 Answers   Honeywell,


what is functioning of DIalodDataXchange ..?

0 Answers  


what is the difference between SDI and MDI

15 Answers   CMC, HCL, Siemens,


Types of DLL's

11 Answers   Invensys,






how does conditionally close the Dialog Box ?

2 Answers   Infotech,


Why Array Index starts from Zero

30 Answers   HCL,


1) Enable or disable a Cancel button at run time?

1 Answers   HCL,


What is the base class for MFC Framework ?

2 Answers   Mphasis,


How can i change the color of a dropdowncombobox elements

2 Answers  


what is the use of CWinApp class?

3 Answers   Mphasis,


visual Pogramming c++ coding for create a paint application.. (Please someone help me)

2 Answers  


Categories