Fixing init result issue.
1 //------------------------------------------------------------------------------
2 #ifndef EVENT_H_INCLUDED
3 #define EVENT_H_INCLUDED
4 //------------------------------------------------------------------------------
6 //------------------------------------------------------------------------------
14 Event(const Event& other) {}
15 Event& operator=(const Event& other) { return *this; }
29 class WindowEvent: public Event
32 WindowEvent(HWND aWnd, UINT aMsg):Event(),iWnd(aWnd),iMsg(aMsg){}
34 BOOL Post(){return PostMessage(iWnd, iMsg, (WPARAM)this, (LPARAM)NULL);}
35 virtual LRESULT Execute(UINT aMsg);
36 virtual LRESULT DoExecute() = 0;
43 //------------------------------------------------------------------------------
45 //------------------------------------------------------------------------------