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

In SDI how many view's are attached to document object and in MDI how many view's are attached to Document object?

2 Answers   Wipro,


What is the difference between ASSERT and VERIFY?

2 Answers  


Which MFC function is used to display output?

9 Answers   TCS,


how many types of classes are ther,what are that

7 Answers   L&T,


What function is called by a document class to notify views that the document has been changed?

2 Answers  


What are the differences between MFC Exception macros and C++ exception keywords?

2 Answers  


What is the difference between Extension DLL and Regular DLL?

6 Answers   GE,


what is the updated verssion in vc++

3 Answers   Aspect,


What is the size of class

18 Answers   Aircom,


What is the base class for MFC

3 Answers   HCL,


How to handle RTTI in MFC ?

1 Answers  


Explain StretchBlt and BitBlt

1 Answers  


Categories