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

1)set the Title for The File DialogBox, in MFC?

1 Answers  


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

1 Answers   HCL,


Which Macro is a Super set of other two macro DECLARE_SERIAL,DECLARE_DYNAMIC and DECLARE_DYNCREATE. ?

2 Answers   Sony,


Why not virtual functions to handle messages?

5 Answers  


How to handle dynamic menus in MFC?

3 Answers   HCL,


What is stack size in win32 program?

1 Answers   HCL,


what do you mean by psychic window?

2 Answers   Patni,


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

11 Answers   Infosys,


What is the base class for most MFC classes?

7 Answers   CMC, Siemens,


What is the difference between Extension DLL and Regular DLL?

6 Answers   GE,


List out the basic features of MFC.

4 Answers   Mphasis,


what is the use of AFX_MANAGE_STATE ?

4 Answers   HCL,


Categories