objectarx MFC 非模态对话框为当前焦点

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);
}

 

posted @ 2019-11-15 18:51  久龄  阅读(299)  评论(0编辑  收藏  举报