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 |
Hi can anyone explain about the synchronization objects types and where we are using in the code.
19)how to set Back Ground Picture to a Dialog Box in MFC ?
What is CSingleDocTemplate?
How to handle command line arguements from simple MFC application ?
What is difference between the TCP/IP and UDP socket
Difference between Debug and Release versions?
What is the difference between workrer thread and UI thread
How to access document object from view ?
What is model and modeless dialog box ? Give some examples?
What is the base class for MFC Framework ?
How to convert the content of buffer into lower case character.
Tell me the different controls in MFC ?