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

2.create for 10 batch: Employee_Number Employee_name Employee_Dateofjoining Employee_address Employee_salary 1.select the employee name who deriving more than 10 thousand salary and joined before august 08. use structure and pointers

0 Answers   TCS,


What is subclassing?

2 Answers  


what is the use of AFX_MANAGE_STATE ?

4 Answers   HCL,


Why not virtual functions to handle messages?

5 Answers  


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

11 Answers   Infosys,


how many types of classes are ther,what are that

7 Answers   L&T,


plzz tell me what we can do and dont in tally ERP & sap business one?

0 Answers  


Tell me the different controls in MFC ?

5 Answers  


What is document-view architecture ? Give me one real time example for SDI ?

2 Answers  


Does the application have more than one object? If no, then what is the reason?

5 Answers  


How to update all the views whenver document got updated ?

1 Answers  


List out the parameters of WinMain Function.

2 Answers   Mphasis,


Categories