wxWidgets/samples/toolbar
Vadim Zeitlin 62f6be4448 Ensure that frame is re-laid out when its toolbar is deleted.
The code in wxFrameBase::SetToolBar() didn't work correctly when toolbar was
unset using SetToolBar(NULL) because the frame toolbar pointer was reset
before layout was done resulting in the frame not recognizing its (still
existing) toolbar child as one of its bars and so nothing was done at all when
the frame had a single child, as in the toolbar sample.

Correct this by carefully ensuring that the toolbar pointer is still set at
the moment of the layout but hide the toolbar to ensure that no place is
allocated for it.

Also mention that it is not necessary to call SetToolBar(NULL) at all if the
toolbar is being deleted anyhow in the sample as toolbar does this itself in
its destructor.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-28 16:18:37 +00:00
..
bitmaps made all XPM const to avoid warnings from mingw32 4.0 and adopt the code accordingly (patch 1872384) 2008-01-16 01:39:44 +00:00
makefile.bcc Rebake after last commit. 2009-11-18 19:22:58 +00:00
makefile.gcc Rebake after last commit. 2009-11-18 19:22:58 +00:00
Makefile.in Rebake after last commit. 2009-11-18 19:22:58 +00:00
makefile.unx Rebaked using post-0.2.7 svn version of bakefile. 2009-10-23 17:48:21 +00:00
makefile.vc Use X64 machine type for MSVC linker instead of old AMD64. 2009-12-08 16:36:37 +00:00
makefile.wat Rebake after last commit. 2009-11-18 19:22:58 +00:00
mondrian.ico
mondrian.xpm made all XPM const to avoid warnings from mingw32 4.0 and adopt the code accordingly (patch 1872384) 2008-01-16 01:39:44 +00:00
mondros2.ico
toolbar_vc7.vcproj Rebake after last commit. 2009-11-18 19:22:58 +00:00
toolbar_vc8.vcproj Rebake after last commit. 2009-11-18 19:22:58 +00:00
toolbar_vc9.vcproj Rebake after last commit. 2009-11-18 19:22:58 +00:00
toolbar.bkl
toolbar.cpp Ensure that frame is re-laid out when its toolbar is deleted. 2009-12-28 16:18:37 +00:00
toolbar.dsp Rebake everything using bakefile 0.2.7. 2009-10-22 16:53:10 +00:00
toolbar.rc
toolbar.rco