1)dynamic creation of a Button ?
Answers were Sorted based on User's Feedback
Answer / rishabh
CButton myButton1;
// Create a push button.
myButton1.Create(_T("My button"), WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON,
CRect(10,10,100,30), pParentWnd, 1);
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / ctharam
BOOL Ctharam::OnInitDialog()
{
CButton* pLogin;
pLogin = (CButton*)GetDlgItem(IDOK);
pLogin->SetWindowTextA("Login");
}
| Is This Answer Correct ? | 3 Yes | 12 No |
1)How to load an icon on a button as Dynamically ?
What is CSingleDocTemplate?
How can we create thread in MFC framework?
Does the application have more than one object? If no, then what is the reason?
What?s the difference between Modal and Modeless Dialog?
How many types of combo box are their
2 Answers Aaditya Info Solutions, E Logic,
if both base and derived class have the constructors if i create an object for derive class which class constructor is executed first
What is the use of message map ?
What is the use of OninitDialog ?
How to access document object from view ?
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
What is the base class for MFC Framework ?