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 stack size in win32 program?
1)does Frame Thickness in MFC?
What is a critical section and how is it implemented?
1) create ToolTip in MFC?
What is the use of message map ?
1)How to change a text of a button as Dynamically?
If application hangs while SendMessage is waiting for the result, how you handle it?
How to create a Modeless Dialog?
Given two processes, how can they share memory?
1)dynamic creation of a Button ?
Difference between Debug and Release versions?
What is the difference between workrer thread and UI thread