ReactOS  0.4.15-dev-489-g75a0787
TaskBarMap Struct Reference

map for managing the task bar buttons, mapped by application window handle More...

#include <taskbar.h>

Inheritance diagram for TaskBarMap:
Collaboration diagram for TaskBarMap:

Public Member Functions

 ~TaskBarMap ()
iterator find_id (int id)
- Public Member Functions inherited from map< HWND, TaskBarEntry >
 map ()
 map (const _Compare &__comp, const allocator_type &__a=allocator_type())
 map (const value_type *__first, const value_type *__last)
 map (const value_type *__first, const value_type *__last, const _Compare &__comp, const allocator_type &__a=allocator_type())
 map (const_iterator __first, const_iterator __last)
 map (const_iterator __first, const_iterator __last, const _Compare &__comp, const allocator_type &__a=allocator_type())
 map (const _Self &__x)
 map (__move_source< _Self > src)
_Selfoperator= (const _Self &__x)
key_compare key_comp () const
value_compare value_comp () const
allocator_type get_allocator () const
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
reverse_iterator rbegin ()
const_reverse_iterator rbegin () const
reverse_iterator rend ()
const_reverse_iterator rend () const
bool empty () const
size_type size () const
size_type max_size () const
_STLP_TEMPLATE_FOR_CONT_EXT TaskBarEntryoperator[] (const _KT &__k)
void swap (_Self &__x)
pair< iterator, boolinsert (const value_type &__x)
iterator insert (iterator __pos, const value_type &__x)
void insert (const value_type *__first, const value_type *__last)
void insert (const_iterator __first, const_iterator __last)
void erase (iterator __pos)
size_type erase (const key_type &__x)
void erase (iterator __first, iterator __last)
void clear ()
_STLP_TEMPLATE_FOR_CONT_EXT iterator find (const _KT &__x)
_STLP_TEMPLATE_FOR_CONT_EXT const_iterator find (const _KT &__x) const
_STLP_TEMPLATE_FOR_CONT_EXT size_type count (const _KT &__x) const
_STLP_TEMPLATE_FOR_CONT_EXT iterator lower_bound (const _KT &__x)
_STLP_TEMPLATE_FOR_CONT_EXT const_iterator lower_bound (const _KT &__x) const
_STLP_TEMPLATE_FOR_CONT_EXT iterator upper_bound (const _KT &__x)
_STLP_TEMPLATE_FOR_CONT_EXT const_iterator upper_bound (const _KT &__x) const
_STLP_TEMPLATE_FOR_CONT_EXT pair< iterator, iteratorequal_range (const _KT &__x)
_STLP_TEMPLATE_FOR_CONT_EXT pair< const_iterator, const_iteratorequal_range (const _KT &__x) const

Additional Inherited Members

- Public Types inherited from map< HWND, TaskBarEntry >
typedef HWND key_type
typedef TaskBarEntry data_type
typedef TaskBarEntry mapped_type
typedef pair< _STLP_CONST HWND, TaskBarEntryvalue_type
typedef _Compare key_compare
typedef _STLP_PRIV _Rb_tree< key_type, key_compare, value_type, _STLP_SELECT1ST(value_type, HWND), _MapTraits, _Alloc_Rep_type
typedef _Rep_type::pointer pointer
typedef _Rep_type::const_pointer const_pointer
typedef _Rep_type::reference reference
typedef _Rep_type::const_reference const_reference
typedef _Rep_type::iterator iterator
typedef _Rep_type::const_iterator const_iterator
typedef _Rep_type::reverse_iterator reverse_iterator
typedef _Rep_type::const_reverse_iterator const_reverse_iterator
typedef _Rep_type::size_type size_type
typedef _Rep_type::difference_type difference_type
typedef _Rep_type::allocator_type allocator_type
- Protected Types inherited from map< HWND, TaskBarEntry >
typedef _STLP_PRIV _MapTraitsT< value_type_MapTraits

Detailed Description

map for managing the task bar buttons, mapped by application window handle

Definition at line 64 of file taskbar.h.

Constructor & Destructor Documentation

◆ ~TaskBarMap()

TaskBarMap::~TaskBarMap ( )

Definition at line 60 of file taskbar.cpp.

61 {
62  while(!empty()) {
63  iterator it = begin();
64  DeleteBitmap(it->second._hbmp);
65  erase(it);
66  }
67 }
void erase(iterator __pos)
Definition: _map.h:203
bool empty() const
Definition: _map.h:171
#define DeleteBitmap(hbm)
Definition: windowsx.h:51
iterator begin()
Definition: _map.h:163

Member Function Documentation

◆ find_id()

TaskBarMap::iterator TaskBarMap::find_id ( int  id)

Definition at line 561 of file taskbar.cpp.

562 {
563  for(iterator it=begin(); it!=end(); ++it)
564  if (it->second._id == id)
565  return it;
567  return end();
568 }
iterator begin()
Definition: _map.h:163

Referenced by TaskBar::Command(), and TaskBar::Notify().

The documentation for this struct was generated from the following files: