Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
class CMyListBox : public CWindowImpl<CMyListBox, CListBox>,
                   public COwnerDraw<CMyListBox>

{

public:
    BEGIN_MSG_MAP(CMyListBox)
     MSG_WM_MOUSEMOVE(OnMouseMove)
        CHAIN_MSG_MAP_ALT(COwnerDraw<CMyListBox>, 1)
        DEFAULT_REFLECTION_HANDLER()
        REFLECT_NOTIFICATIONS()
    END_MSG_MAP()

 
    LRESULT OnTimer(  UINT /* Unnamed */,   WPARAM wParam,   LPARAM /* Unnamed */,   BOOL & /* Unnamed */);
};



error C2065: 'MSG_WM_TIMER' : undeclared identifier


I don't exactly know why would this happen, does anyone know why? Thanks you.
Posted
Updated 8-Apr-13 2:52am
v2

1 solution

I think you have missed the message mapping for OnTimer() function.
In BEGIN_MSG_MAP section please add "MSG_WM_TIMER(OnTimer)", and try if it is working.
 
Share this answer
 
Comments
MCGRADYV5 8-Apr-13 9:09am    
I wrote MSG_WM_TIMER(OnTImer) in my program, but forgot to put it on the website.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900