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 size of class
What is LoadLibrary function returns?
is there any class which is not derived from Cobject
What are the advantages of using Doc/View or SDI over DialogBox
what are the feauters of CObject
Which MFC function is used to display output?
Given two processes, how can they share memory?
What is Thread ?(VC++)What is the difference between Cmutex and Csemaphone?
What is Multithreading
General purpose classes in MFC
Name the Synchronization objects?
What is the difference between the SDI and MDI