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 |
In SDI how many view's are attached to document object and in MDI how many view's are attached to Document object?
What is the difference between ASSERT and VERIFY?
Which MFC function is used to display output?
how many types of classes are ther,what are that
What function is called by a document class to notify views that the document has been changed?
What are the differences between MFC Exception macros and C++ exception keywords?
What is the difference between Extension DLL and Regular DLL?
what is the updated verssion in vc++
What is the size of class
What is the base class for MFC
How to handle RTTI in MFC ?
Explain StretchBlt and BitBlt