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 a text of a button as Dynamically?



1)How to change a text of a button as Dynamically?..

Answer / 106743013743

OK button to become Login

BOOL Csample_button_name_changeDlg::OnInitDialog()
{
CDialog::OnInitDialog();

// Below Below, to change text on button in runtime
CButton* pLogin;
pLogin = (CButton*)GetDlgItem(IDOK);
pLogin->SetWindowTextW(L"Login");

return TRUE; // return TRUE unless you set the
focus to a control

}

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More MFC Interview Questions

what if we provide two message handler for same message ?

1 Answers  


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

1 Answers  


Difference between Cclint DC & Cpaint Dc

6 Answers   E Logic,


Given two processes, how can they share memory?

2 Answers   Microsoft,


What is the base class for most MFC classes?

7 Answers   CMC, Siemens,


How can i implement the dynamic menus in MFC plz give the code

2 Answers  


is it possible to display a window .without using windowclass

1 Answers   E Logic,


How we call a dialog in another dialog?

2 Answers  


How do I create a dialog box in mfc?

0 Answers  


How can update edit control data of an executing application from other application?

3 Answers   HP,


What is the difference between the SDI and MDI

3 Answers   Invensys,


what is the size of a process

2 Answers   E Logic, IBM,


Categories