fixed ~wxWindowBase to remove associated context help from wxHelpProvider -- otherwise wrong help text could be reused by other controls later

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2008-02-29 21:11:53 +00:00
parent 118e206211
commit c170f4aeec
3 changed files with 15 additions and 1 deletions

View File

@@ -69,11 +69,16 @@ the window.
\func{virtual void}{RemoveHelp}{\param{wxWindowBase* }{window}}
Removes the association between the window pointer and the help text. This is
Removes the association between the window pointer and the help text, if it
was previously set using \helpref{AddHelp}{wxhelpprovideraddhelp}. This is
called by the wxWindow destructor. Without this, the table of help strings will
fill up and when window pointers are reused, the wrong help string will be
found.
Note that this method may be called even for windows that don't have any
associated help text. If that happens, its implementation should simply do
nothing.
\membersection{wxHelpProvider::Set}\label{wxhelpproviderset}