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

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

2 Answers   Sony,


if both base and derived class have the constructors if i create an object for derive class which class constructor is executed first

10 Answers   Siemens, Symphony,


1)At run-time, you can change the icon by calling the LoadIcon() function?

2 Answers  


What is stack size in win32 program?

1 Answers   HCL,


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

4 Answers   Microsoft,


In VC++ How to transfer between one exe to another exe while running..

5 Answers   Wipro,


What is a message map, and what is the advantage of a message map over virtual functions?

1 Answers  


What is difference between the TCP/IP and UDP socket

5 Answers   Invensys,


Have you ever used win32 APIs ?

4 Answers   Microsoft,


how does the UIThread and worker thread communicates and handle events

2 Answers   HCL,


if no message handler is available for a message then will deal with the message ? does window proving any default mechanism?

2 Answers   Patni,


Explain about MDI and CMultiDocTemplate ?

2 Answers  


Categories