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) Enable or disable a Cancel button at run time?



1) Enable or disable a Cancel button at run time?..

Answer / 106743013743

Hi,

Example:-

BOOL Ctharam::OnInitDialog()
{
CDialog::OnInitDialog();
// Below Code, To Enable or Disable a button as
runtime
CButton *pLogin1 = (CButton*)GetDlgItem(IDCANCEL);
pLogin1->SetWindowTextW(L"Reset");
pLogin1->EnableWindow(FALSE);

return TRUE;
}

Note:- pLogin1->EnableWindow(TRUE); // to enable a Cancel
button


I hope that it might be helpful to you!!!!!

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More MFC Interview Questions

how does the UIThread and worker thread communicates and handle events

2 Answers   HCL,


What is LoadLibrary function returns?

7 Answers  


what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?

0 Answers  


what is the component of CLR ?

8 Answers   AZTEC, Symphony,


How do you change the properties for a tree view control that is part of the CTreeView class?

1 Answers  


What is Multithreading

1 Answers   Invensys,


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

0 Answers  


What is the base class for MFC Framework ?

2 Answers   Mphasis,


What is socket?

3 Answers  


What is the base class for most MFC classes?

7 Answers   CMC, Siemens,


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

1 Answers   HCL,


What is subclassing?

2 Answers  


Categories