使MFC对话框不响应标题栏双击
方法一:
重载PreTranslateMessage:
/*.h文件*/
virtual BOOL PreTranslateMessage(MSG* pMsg);
/*.cpp文件*/
BOOL CMainFrame::PreTranslateMessage(MSG* pMsg)
{
//不响应标题栏双击
if(pMsg->message == WM_NCLBUTTONDBLCLK) // 非client区域的双击消息
if(pMsg->wParam == HTCAPTION) /