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.
This commit is contained in:
Jan Klass 2017-07-23 23:18:35 +02:00
parent 705460cf04
commit 8b5662afe8
2 changed files with 2 additions and 2 deletions

View file

@ -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);
/*

View file

@ -109,7 +109,7 @@ protected:
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();