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 |
Tell me the work of HTREDUCE and HTZOOM
What is Thread ?(VC++)What is the difference between Cmutex and Csemaphone?
what is functioning of DIalodDataXchange ..?
what is the use of Mutex and critical section
How we can findout Memoryleaks, In what way it can be avoided
What is a message map, and what is the advantage of a message map over virtual functions?
Does the application have more than one object? If Yes, Briefly explain.
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 GetMessage and PeekMessage ?
What is thread & process?
How to find the mouse entering an image?..while entering need to display next image...
What is difference between the TCP/IP and UDP socket