NewSplitterWnd.cpp
上传用户:xiaoke98
上传日期:2014-06-29
资源大小:5718k
文件大小:1k
源码类别:

家庭/个人应用

开发平台:

Visual C++

  1. // NewSplitterWnd.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "NewSplitterWnd.h"
  5. IMPLEMENT_DYNCREATE(CNewSplitterWnd, CSplitterWnd)
  6. BEGIN_MESSAGE_MAP(CNewSplitterWnd, CSplitterWnd)
  7. ON_WM_LBUTTONDOWN()
  8. ON_WM_SETCURSOR()
  9. ON_WM_MOUSEMOVE()
  10. END_MESSAGE_MAP()
  11. void CNewSplitterWnd::OnLButtonDown(UINT nFlags, CPoint point)
  12. {     
  13.     // 直接返回
  14. return;
  15. }
  16. BOOL CNewSplitterWnd::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
  17. {   
  18.     // 当光标进入分割窗口时,不允许改变样子
  19. return FALSE;
  20. }
  21. void CNewSplitterWnd::OnMouseMove(UINT nFlags, CPoint point)
  22. {       
  23.     //跳过调用CSplitterWnd::OnMouseMove,因为他会引起光标的改变
  24.     CWnd::OnMouseMove(nFlags, point);
  25. }