I have an MFC Visual C++ application which seems to not be able to work within the Class Wizard, nevertheless, I have a view (CServerView) which I would like to add a WM_TIMER event handler to.
I have figured out how to call CWnd::SetTimer and CWnd::KillTimer but what I haven’t done in over a decade is modify the message map. I’m not sure if the map I should modify for my CView subclass is this part of the ServerView.cpp file, or something in ServerView.h:
BEGIN_MESSAGE_MAP(CServerView, CListView)
//{{AFX_MSG_MAP(CServerView)
ON_COMMAND(ID_DRIVER_START, OnDriverStart)
ON_UPDATE_COMMAND_UI(ID_DRIVER_START, OnUpdateDriverStart)
...
// Standard printing commands
END_MESSAGE_MAP()
This is probably a trivial thing, but the two complex issues I’m facing are that the documentation online on this is all for recent Visual Studio versions, and I’m stuck doing this in Visual C++ 6.0
In your header file:
In your cpp file: