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

Tell me about different kinds of synchranization objects ?

6 Answers  


If i derive a new class from CObject what are the basic features my derived wil get ?

4 Answers   Microsoft,


Explain in sort What is CTargetObject?

2 Answers  


What is stack size in win32 program?

1 Answers   HCL,


Can you explaing the relashionship between document,frame and view ?

2 Answers  


how to give colour for dialog button or static buuto?any one explain full code ?pls pls

3 Answers  


1)dynamic creation of a Button ?

2 Answers   TCS,


Which CPrintInfo member variable must be set for multiple page printouts?

1 Answers  


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

1 Answers  


if i modified data in 1 view how does the other view knows

2 Answers   Siemens,


1)why we cant create more than one instance of the class Derived from CWinApp

5 Answers   Alstom,


What is the use of CObject::Dump function ?

4 Answers  


Categories