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 |
how does the UIThread and worker thread communicates and handle events
What is LoadLibrary function returns?
what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?
what is the component of CLR ?
How do you change the properties for a tree view control that is part of the CTreeView class?
What is Multithreading
plzz tell me what we can do and dont in tally ERP & sap business one?
What is the base class for MFC Framework ?
What is socket?
What is the base class for most MFC classes?
1)How to load an icon on a button as Dynamically ?
What is subclassing?