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 |
How WM_PAINT message gets called in MFC,please explain it . a)Who calls the WM_PAINT message? b)When it gets called? c)how it comes to message queue? Please Explain it
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 ?
Differ GetMessage, PostMessage & PeakMessage?
What four types of properties are supported by an ActiveX control?
How to create a Modeless Dialog?
How to update windows title bar dynamically?
I can i set size of integer variable should be fixed for different operating systems(Ex i want integer size is 2bytes in OS)
What function is called by a document class to notify views that the document has been changed?
What is the base class for MFC
1)To Remove WS_MINIMIZEBOX in a Frame ?
Tell me the work of HTREDUCE and HTZOOM