MFC Question:
Download Job Interview Questions and Answers PDF
What is a message map?
Answer:
Message map is dynamic function locater
It can look each function if it defined
e.g
void OnWndMessage(UINT message, WPARAM wParam, LPARAM
lParam, LRESULT *pResult)
{
// function looking MESSAGE_MAPS ((DECLARED))
// if found, CWnd::OnSize(UINT nStyle, int cx, int cy);
__thisclass.OnSize(wParam, HIWORD(lParam), LOWORD(lParam);
}
//M
It can look each function if it defined
e.g
void OnWndMessage(UINT message, WPARAM wParam, LPARAM
lParam, LRESULT *pResult)
{
// function looking MESSAGE_MAPS ((DECLARED))
// if found, CWnd::OnSize(UINT nStyle, int cx, int cy);
__thisclass.OnSize(wParam, HIWORD(lParam), LOWORD(lParam);
}
//M
Download MFC Interview Questions And Answers
PDF
Previous Question | Next Question |
How to create a button dynamically? | List out the basic features of MFC? |