-// define a hash containing all the timers: it is indexed by HWND and timer id
-struct wxTimerKey
-{
- wxTimerKey(WXHWND hwnd, int id) : m_hwnd(hwnd), m_id(id) { }
- wxTimerKey(HWND hwnd, int id) : m_hwnd((WXHWND)hwnd), m_id(id) { }
-
- WXHWND m_hwnd;
- int m_id;
-};
-
-static inline bool operator==(const wxTimerKey& tk1, const wxTimerKey& tk2)
-{
- return tk1.m_hwnd == tk2.m_hwnd && tk1.m_id == tk2.m_id;
-}
-
-struct wxTimerKeyHash
-{
- wxTimerKeyHash() { }
- unsigned long operator()(const wxTimerKey& tk) const
- { return (unsigned long)tk.m_hwnd + tk.m_id; }
-
- wxTimerKeyHash& operator=(const wxTimerKeyHash&) { return *this; }
-};
-
-struct wxTimerKeyEqual
-{
- wxTimerKeyEqual() { }
- bool operator()(const wxTimerKey& tk1, const wxTimerKey& tk2) const
- { return tk1 == tk2; }
-
- wxTimerKeyEqual& operator=(const wxTimerKeyEqual&) { return *this; }
-};
-
-WX_DECLARE_HASH_MAP(wxTimerKey, wxTimer *, wxTimerKeyHash, wxTimerKeyEqual,
+// define a hash containing all the timers: it is indexed by timer id and
+// contains the corresponding timer
+WX_DECLARE_HASH_MAP(unsigned long, wxTimer *, wxIntegerHash, wxIntegerEqual,