Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 to update windows title bar dynamically?

7 Answers   HCL,


How many types of dialog box are their

10 Answers   Honeywell,


what are the feauters of CObject

4 Answers   Siemens, Wipro,


what is the difference between SDI and MDI

15 Answers   CMC, HCL, Siemens,


How to update all the views whenver document got updated ?

1 Answers  


what is the use of Mutex and critical section

2 Answers  


1)To Remove WS_MINIMIZEBOX in a Frame ?

1 Answers  


What is LPCTSTR? What does LP denote it?

4 Answers  


1)How to load an icon on a button as Dynamically ?

1 Answers   HCL,


what is the use of CWinApp class?

3 Answers   Mphasis,


1)how to Display the File Dialog Box, in MFC ?

1 Answers  


If application hangs while SendMessage is waiting for the result, how you handle it?

2 Answers  


Categories