- if (type == wxEVT_ANY)
- {
- //Get the total event count
- long total = 0;
-
- for(wxLongToLongHashMap::iterator iter = m_count.begin();
- iter != m_count.end();
- iter++)
- {
- total += iter->second;
- iter->second = 0;
- }
-
- return total;
- }
- else
- {
- long count = m_count[type];
- m_count[type] = 0;
- return count;
- }