MFC Question:
Download Job Interview Questions and Answers PDF
How to create a button dynamically?
Answer:
1. Create a Object from CButton control. CButton m_ctlButton
2. m_ctlButton.Create("OK",ES_CHILD|ES_VISIBLE,CRect(0,0,100,100),CWnd*
pParentWnd,MB_OK);
with this we can create the button by dynamically.
2. m_ctlButton.Create("OK",ES_CHILD|ES_VISIBLE,CRect(0,0,100,100),CWnd*
pParentWnd,MB_OK);
with this we can create the button by dynamically.
Download MFC Interview Questions And Answers
PDF
Previous Question | Next Question |
List out the parameters of WinMain Function? | What is a message map? |