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

What is userdefine Messages in MFC?

1 Answers   HCL,


In VC++ How to transfer between one exe to another exe while running..

5 Answers   Wipro,


What view class enables you to use an edit control as a view?

1 Answers  


is there any class which is not derived from Cobject

11 Answers   Patni,


How many types of combo box are their

2 Answers   Aaditya Info Solutions, E Logic,


What is the difference between the ASSERT and VERIFY macros?

4 Answers  


What is the initial function to be called in MFC and what it will do

11 Answers   Infosys,


Given two processes, how can they share memory?

2 Answers   Microsoft,


What is a critical section and how is it implemented?

2 Answers  


19)how to set Back Ground Picture to a Dialog Box in MFC ?

1 Answers  


what if we provide two message handler for same message ?

1 Answers  


How to convert the content of buffer into lower case character.

3 Answers   E Logic,


Categories