1)How to change a text of a button as Dynamically?
Answer / 106743013743
OK button to become Login
BOOL Csample_button_name_changeDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// Below Below, to change text on button in runtime
CButton* pLogin;
pLogin = (CButton*)GetDlgItem(IDOK);
pLogin->SetWindowTextW(L"Login");
return TRUE; // return TRUE unless you set the
focus to a control
}
| Is This Answer Correct ? | 1 Yes | 0 No |
How to handle RTTI in MFC ?
is there any class which is not derived from Cobject
What is model and modeless dialog box ? Give some examples?
What MFC base classes provide support for ActiveX controls?
What view class enables you to use an edit control as a view?
How do you change the properties for a tree view control that is part of the CTreeView class?
How to handle dynamic menus in MFC?
1)does Frame Thickness in MFC?
I can i set size of integer variable should be fixed for different operating systems(Ex i want integer size is 2bytes in OS)
1) How do you Destroy a Dialog Box ?
1)At run-time, you can change the icon by calling the LoadIcon() function?
what is the use of AFX_MANAGE_STATE ?