Fix for Bug #1432054: ToolBar controls not removed by ClearTools
authorRobin Dunn <robin@alldunn.com>
Thu, 16 Feb 2006 03:03:43 +0000 (03:03 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 16 Feb 2006 03:03:43 +0000 (03:03 +0000)
commita3e9caa2b55fcc62e0ac8262a45ee83d0c6ce453
tree00752ec35f6ccf0e3123a230acae2a77ee47b6fd
parent3b6a1179621302e72f6d563d87aa2eabf1d8ce5d
Fix for Bug #1432054: ToolBar controls not removed by ClearTools
Use DeleteTool in ClearTools instead of just destroying the internal
list, so the toolbar is kept fully in sync with the removal of all
tool types.  Also fix wxMSW version to actually Destroy() the controls
when they are deleted from the toolbar.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/tbarbase.cpp
src/msw/tbar95.cpp