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 |
19)how to set Back Ground Picture to a Dialog Box in MFC ?
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 difference between regular dlls and extended dlls?
Explain in sort What is CTargetObject?
what is the updated verssion in vc++
what message is sent to an application when the user presses the primary button?
What is LPCTSTR? What does LP denote it?
What is the difference between workrer thread and UI thread
Differ GetMessage, PostMessage & PeakMessage?
Hi can anyone explain about the synchronization objects types and where we are using in the code.
What is a message map, and what is the advantage of a message map over virtual functions?
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);