L
Luke Duke
vc++ v7.1
Whenever I add an OnTimer message handler via the properties pane, I
get the following code added to my files:
afx_msg void OnTimer(UINT nIDEvent);
- and -
void CMyWnd::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call
default
CWnd::OnTimer(nIDEvent);
}
I'm actually doing a cast on the event ID to a HANDLE, and the
compiler complains of a 64 bit conversion problem.
Question:
After looking through the help files, shouldn't the OnTimer prototype
be declared using UINT_PTR, ala:
afx_msg void OnTimer(UINT_PTR nIDEvent);
Luke
Whenever I add an OnTimer message handler via the properties pane, I
get the following code added to my files:
afx_msg void OnTimer(UINT nIDEvent);
- and -
void CMyWnd::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call
default
CWnd::OnTimer(nIDEvent);
}
I'm actually doing a cast on the event ID to a HANDLE, and the
compiler complains of a 64 bit conversion problem.
Question:
After looking through the help files, shouldn't the OnTimer prototype
be declared using UINT_PTR, ala:
afx_msg void OnTimer(UINT_PTR nIDEvent);
Luke