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

Whats is DDX & DDV in MFC?

1 Answers   HCL,


How we call a dialog in another dialog?

2 Answers  


How we can findout Memoryleaks, In what way it can be avoided

6 Answers   Infosys,


Does the application have more than one object? If Yes, Briefly explain.

2 Answers   Soltius Infotech,


What is subclassing?

2 Answers  


What is model and modeless dialog box ? Give some examples?

2 Answers   Mphasis,


What is a message map, and what is the advantage of a message map over virtual functions?

1 Answers  


Tell us something about MFC?

7 Answers   Microsoft,


What is the difference between Extension DLL and Regular DLL?

6 Answers   GE,


What is CSingleDocTemplate?

1 Answers  


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

3 Answers   Patni,


List out the parameters of WinMain Function.

2 Answers   Mphasis,


Categories