I am wondering which one of this functions to use when a
CEdit
control and a
CDateTimeCtrl
control change events occures on an
CRecordView
parent view:
BOOL CMyView::OnChildNotify(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pLResult)
{
return CRecordView::OnChildNotify(message, wParam, lParam, pLResult);
}
or
BOOL CMyView::OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo)
{
return CRecordView::OnCmdMsg(nID, nCode, pExtra, pHandlerInfo);
}
or
BOOL CMyView::OnCommand(WPARAM wParam, LPARAM lParam)
{
return CRecordView::OnCommand(wParam, lParam);
}
or
BOOL CMyView::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
return CRecordView::OnNotify(wParam, lParam, pResult);
}
I am using the same code when a change event occurs on some
CEdit
controls, so the best solution is use one of the above functions, but I don't know the deference between them (Which one fit in this situation ?)
I also have some
CDateTimeCtrl
controls
Help me please :((