如题,我把单文档窗口最大化后,想把其固定住,可是当双击上方的标题栏后就会变小。
如何让单文档的标题栏不响应鼠标双击消息呢?

解决方案 »

  1.   

    void CMainFrame::OnNcLButtonDblClk(UINT nHitTest, CPoint point) 
    {
    // TODO: Add your message handler code here and/or call default
    return ;
    //CFrameWnd::OnNcLButtonDblClk(nHitTest, point);
    }
    不知道该返回什么,直接return了,不过双击标题栏窗口不会变大变小了
      

  2.   

    你和2楼没有理解我的意思,我是要不能单击标题栏,不是框架;
    1楼的在PreTranslateMsg拦截双击信息可以解决问题,谢谢