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 |
plzz tell me what we can do and dont in tally ERP & sap business one?
What function is used to retrieve the currently selected index in a list box?
what if we provide two message handler for same message ?
What is primitive and non-primitive application?
Given two processes, how can they share memory?
1) How do you Destroy a Dialog Box ?
What is the use of UpdateData funciton ?
1)How to change the size of a button at run time ?
Tell me the different controls in MFC ?
How can update edit control data of an executing application from other application?
if both base and derived class have the constructors if i create an object for derive class which class constructor is executed first
Which Macro is a Super set of other two macro DECLARE_SERIAL,DECLARE_DYNAMIC and DECLARE_DYNCREATE. ?