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 are the feauters of CObject
Difference between Cclint DC & Cpaint Dc
In VC++ How to transfer between one exe to another exe while running..
Which Macro is a Super set of other two macro DECLARE_SERIAL,DECLARE_DYNAMIC and DECLARE_DYNCREATE. ?
What is the base class for MFC Framework ?
How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?
What is Multithreading
What is the difference between the Encapsulation and Abstraction
25 Answers HCL, Invensys, TCS, Wipro,
Types of DLL's
How many types of dialog box are their
What function is used to retrieve the currently selected index in a list box?
What function is used to disable a control at runtime?