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 |
Tell me about different kinds of synchranization objects ?
If i derive a new class from CObject what are the basic features my derived wil get ?
Explain in sort What is CTargetObject?
What is stack size in win32 program?
Can you explaing the relashionship between document,frame and view ?
how to give colour for dialog button or static buuto?any one explain full code ?pls pls
1)dynamic creation of a Button ?
Which CPrintInfo member variable must be set for multiple page printouts?
How do you change the properties for a tree view control that is part of the CTreeView class?
if i modified data in 1 view how does the other view knows
1)why we cant create more than one instance of the class Derived from CWinApp
What is the use of CObject::Dump function ?