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 MFC base classes provide support for ActiveX controls?
How many types of combo box are their
2 Answers Aaditya Info Solutions, E Logic,
Difference between Debug and Release versions?
What is subclassing?
What is the difference between Extension DLL and Regular DLL?
what do you mean by psychic window?
If application hangs while SendMessage is waiting for the result, how you handle it?
1)At run-time, you can change the icon by calling the LoadIcon() function?
2.create for 10 batch: Employee_Number Employee_name Employee_Dateofjoining Employee_address Employee_salary 1.select the employee name who deriving more than 10 thousand salary and joined before august 08. use structure and pointers
1)How to change a text of a button in runtime?
What is the difference between the SDI and MDI
What is the difference between the Encapsulation and Abstraction
25 Answers HCL, Invensys, TCS, Wipro,