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) create ToolTip in MFC?
What?s the difference between Modal and Modeless Dialog?
what is the use of Mutex and critical section
How to access document object from view ?
what is functioning of DIalodDataXchange ..?
how can u change button shape at run time
How to create a Modeless Dialog?
what is the size of a process
What is the difference between workrer thread and UI thread
What is the difference between hinsrtance and hprevinstance in WinMain function?
what is the difference between compiling and building?
How can update edit control data of an executing application from other application?