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

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

2 Answers  


What is Thread ?(VC++)What is the difference between Cmutex and Csemaphone?

5 Answers   Atos Origin,


Explain about MDI and CMultiDocTemplate ?

2 Answers  


what is the use of CCmdTarget?

4 Answers   Siemens,


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

2 Answers  


1)does Frame Thickness in MFC?

1 Answers   winfoware,


what is the difference between compiling and building?

1 Answers  


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

6 Answers   Infosys,


What is CSingleDocTemplate?

1 Answers  


What function is used to disable a control at runtime?

7 Answers  


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

1 Answers  


List out the basic features of MFC.

4 Answers   Mphasis,


Categories