dialog.h
afx_msg LRESULT OnAcadKeepFocus(WPARAM, LPARAM);
dialog.cpp
BEGIN_MESSAGE_MAP(CTextDialog, CDialogEx)
ON_MESSAGE(WM_ACAD_KEEPFOCUS, OnAcadKeepFocus)
END_MESSAGE_MAP()
LRESULT CTextDialog::OnAcadKeepFocus(WPARAM, LPARAM) {
return (TRUE);
}