NewSplitterWnd.cpp
上传用户:xiaoke98
上传日期:2014-06-29
资源大小:5718k
文件大小:1k
- // NewSplitterWnd.cpp : implementation file
- //
- #include "stdafx.h"
- #include "NewSplitterWnd.h"
- IMPLEMENT_DYNCREATE(CNewSplitterWnd, CSplitterWnd)
- BEGIN_MESSAGE_MAP(CNewSplitterWnd, CSplitterWnd)
- ON_WM_LBUTTONDOWN()
- ON_WM_SETCURSOR()
- ON_WM_MOUSEMOVE()
- END_MESSAGE_MAP()
- void CNewSplitterWnd::OnLButtonDown(UINT nFlags, CPoint point)
- {
- // 直接返回
- return;
- }
- BOOL CNewSplitterWnd::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
- {
- // 当光标进入分割窗口时,不允许改变样子
- return FALSE;
- }
- void CNewSplitterWnd::OnMouseMove(UINT nFlags, CPoint point)
- {
- //跳过调用CSplitterWnd::OnMouseMove,因为他会引起光标的改变
- CWnd::OnMouseMove(nFlags, point);
- }