Browse Source

Removed override mouse wheel on the description rtf control

sabrogden 8 years ago
parent
commit
1b4ae5d38b
2 changed files with 0 additions and 37 deletions
  1. 0 36
      ToolTipEx.cpp
  2. 0 1
      ToolTipEx.h

+ 0 - 36
ToolTipEx.cpp

@@ -60,7 +60,6 @@ ON_COMMAND(ID_FIRST_HIDEDESCRIPTIONWINDOWONM, &CToolTipEx::OnFirstHidedescriptio
 ON_COMMAND(ID_FIRST_WRAPTEXT, &CToolTipEx::OnFirstWraptext)
 ON_WM_WINDOWPOSCHANGING()
 ON_COMMAND(ID_FIRST_ALWAYSONTOP, &CToolTipEx::OnFirstAlwaysontop)
-ON_NOTIFY(EN_MSGFILTER, 1, &CToolTipEx::OnEnMsgfilterRichedit21)
 END_MESSAGE_MAP()
 
 
@@ -1116,39 +1115,4 @@ void CToolTipEx::OnFirstAlwaysontop()
 	}
 
 	::SetWindowPos(m_hWnd, NULL, 0, 0, 0, 0, SWP_DRAWFRAME | SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE);	
-}
-
-void CToolTipEx::OnEnMsgfilterRichedit21(NMHDR *pNMHDR, LRESULT *pResult)
-{
-	MSGFILTER *pMsgFilter = reinterpret_cast<MSGFILTER *>(pNMHDR);
-	if (pMsgFilter != NULL)
-	{
-		switch (pMsgFilter->msg)
-		{
-		case WM_VSCROLL:
-
-			//forward the mouse wheel onto the window under the cursor
-			//normally windows only sends it to the window with focus, bypass this
-			POINT mouse;
-			GetCursorPos(&mouse);
-			HWND windowUnderCursor = ::WindowFromPoint(mouse);
-
-			if (windowUnderCursor != m_RichEdit)
-			{
-				::PostMessage(windowUnderCursor, WM_MOUSEWHEEL, pMsgFilter->lParam, pMsgFilter->wParam);
-				*pResult = TRUE;
-				return;
-			}
-
-			break;
-		}
-	}
-	// TODO:  The control will not send this notification unless you override the
-	// CDialogEx::OnInitDialog() function to send the EM_SETEVENTMASK message
-	// to the control with either the ENM_KEYEVENTS or ENM_MOUSEEVENTS flag 
-	// ORed into the lParam mask.
-
-	// TODO:  Add your control notification handler code here
-
-	*pResult = 0;
 }

+ 0 - 1
ToolTipEx.h

@@ -127,5 +127,4 @@ public:
 	afx_msg void OnFirstWraptext();
 	afx_msg void OnNcLButtonDblClk(UINT nHitTest, CPoint point);
 	afx_msg void OnFirstAlwaysontop();
-	afx_msg void OnEnMsgfilterRichedit21(NMHDR *pNMHDR, LRESULT *pResult);
 };