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 |
What is CALLBACK? How it work? what is the advantage of CALLBACK, please explain with an example
In VC++ How to transfer between one exe to another exe while running..
what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?
what is the difference between compiling and building?
What is a message map?
What is the difference between Synchronous sockets and asynchronous sockets?
How you find memory leaks?
1)dynamic creation of a Button ?
If i derive a new class from CObject what are the basic features my derived wil get ?
what is the use of CCmdTarget?
What is the difference between the Encapsulation and Abstraction
25 Answers HCL, Invensys, TCS, Wipro,
1)At run-time, you can change the icon by calling the LoadIcon() function?