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 the difference between compiling and building?
What is the difference between Extension DLL and Regular DLL?
1) create ToolTip in MFC?
What is the use of CCmdTarget ?
what is the updated verssion in vc++
what is functioning of DIalodDataXchange ..?
what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?
what if we provide two message handler for same message ?
1)dynamic creation of a Button ?
What is the difference between the Encapsulation and Abstraction
25 Answers HCL, Invensys, TCS, Wipro,
What is difference between the TCP/IP and UDP socket
What function is called by a document class to notify views that the document has been changed?