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 |
What is primitive and non-primitive application?
What view class enables you to use an edit control as a view?
what if we provide two message handler for same message ?
What is LoadLibrary function returns?
How can update edit control data of an executing application from other application?
What is the base class for MFC Framework ?
Explain about MDI and CMultiDocTemplate ?
plzz tell me what we can do and dont in tally ERP & sap business one?
How can server communicate with more than one client
How can we create thread in MFC framework?
What is CSingleDocTemplate?
1)how to Display the File Dialog Box, in MFC ?