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 |
1)How to change the size of a button at run time ?
plzz tell me what we can do and dont in tally ERP & sap business one?
how do u identify RTTI in vc++
What are the special requirements for dialog box resources used in a form view?
If application hangs while SendMessage is waiting for the result, how you handle it?
Does the application have more than one object? If Yes, Briefly explain.
What is the range of intensity of RGB
What is a message map?
What does mfc stand for?
How to access document object from view ?
I want recent paper pattern for HP company?
Explain about MDI and CMultiDocTemplate ?