From 8b5662afe8b91b7bbc3cbd132d796cda692bc642 Mon Sep 17 00:00:00 2001 From: Jan Klass Date: Sun, 23 Jul 2017 23:18:35 +0200 Subject: [PATCH] Fix cast type compilation error The macro ON_WM_TIMER static casts to `void (AFX_MSG_CALL CWnd::*)(UINT_PTR)`. This failed with the previous OnTimer method definition. Change the parameter type from UINT to UINT_PTR to match the cast. --- src/EasyGenView.cpp | 2 +- src/EasyGenView.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EasyGenView.cpp b/src/EasyGenView.cpp index 296c6c6..1ed7001 100644 --- a/src/EasyGenView.cpp +++ b/src/EasyGenView.cpp @@ -1028,7 +1028,7 @@ void CEasyGenView::OnLButtonDblClk(UINT nFlags, CPoint point) CView::OnLButtonDblClk(nFlags, point); } -void CEasyGenView::OnTimer(UINT nIDEvent) +void CEasyGenView::OnTimer(UINT_PTR nIDEvent) { CView::OnTimer(nIDEvent); /* diff --git a/src/EasyGenView.h b/src/EasyGenView.h index c0d753b..a954565 100644 --- a/src/EasyGenView.h +++ b/src/EasyGenView.h @@ -109,7 +109,7 @@ class CEasyGenView : public CView afx_msg void OnRButtonUp(UINT nFlags, CPoint point); afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); - afx_msg void OnTimer(UINT nIDEvent); + afx_msg void OnTimer(UINT_PTR nIDEvent); afx_msg void OnRButtonDblClk(UINT nFlags, CPoint point); afx_msg void OnCameraAlign(); afx_msg void OnCameraLeft();