Suppress SetFocus() warning in wxVListBoxComboPopup

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@64259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2010-05-09 10:48:37 +00:00
parent 270573834f
commit 8fe08e5275
2 changed files with 18 additions and 0 deletions

View File

@@ -174,6 +174,13 @@ protected:
// Stop partial completion (when some other event occurs)
void StopPartialCompletion();
#ifdef __WXMSW__
// Added to work around a SetFocus() log error. Overriding virtual member
// function from the primary base class (in this case, wxVListBox) should
// be ABI compatible.
virtual void SetFocus();
#endif
wxArrayString m_strings;
wxArrayPtrVoid m_clientDatas;

View File

@@ -94,6 +94,17 @@ wxVListBoxComboPopup::~wxVListBoxComboPopup()
Clear();
}
#ifdef __WXMSW__
void wxVListBoxComboPopup::SetFocus()
{
// Suppress SetFocus() warning by simply not calling it. This combo popup
// has already been designed with the assumption that SetFocus() may not
// do anything useful, so it really doesn't need to be called.
}
#endif // __WXMSW__
bool wxVListBoxComboPopup::LazyCreate()
{
// NB: There is a bug with wxVListBox that can be avoided by creating