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 to handle command line arguements from simple MFC application ?
What is the difference between the ASSERT and VERIFY macros?
What is CArchive class dowes?
Will there be any difference in the image buffer size if it is loaded in from CString to LPTSTR using GetBuffer()? lptstr = string.GetBuffer(0);
Tell us something about MFC?
In SDI how many view's are attached to document object and in MDI how many view's are attached to Document object?
what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?
What four types of properties are supported by an ActiveX control?
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 is CSingleDocTemplate?
How can i change the color of a dropdowncombobox elements
Differ GetMessage, PostMessage & PeakMessage?