如题.
afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);等全部没用.
afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);等全部没用.
BOOL CXXView::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
switch(pMsg->message)
{
case WM_MOUSEWHEEL:
AfxMessageBox(_T("MouseWhell"));
break; case WM_HSCROLL:
AfxMessageBox(_T("HScroll"));
break; case WM_VSCROLL:
AfxMessageBox(_T("VScroll"));
break;
case WM_KEYUP:
AfxMessageBox(_T("Keyup"));
break; case WM_LBUTTONDOWN:
AfxMessageBox(_T("LButtonDown"));
break; case WM_LBUTTONDBLCLK:
AfxMessageBox(_T("LButtonDBLCLK"));
break; default:
break;
}
return CHtmlView::PreTranslateMessage(pMsg);
}