]> git.saurik.com Git - wxWidgets.git/commitdiff
Supress SetFocus() warning in wxVListBoxComboPopup
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 9 May 2010 10:29:48 +0000 (10:29 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sun, 9 May 2010 10:29:48 +0000 (10:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/odcombo.h
src/generic/odcombo.cpp

index 614663e72c5e306d07afabd609e2149407e390ad..9a6b7bf394d55c88510bff91478bf225c64cc976 100644 (file)
@@ -80,6 +80,7 @@ public:
     // required virtuals
     virtual void Init();
     virtual bool Create(wxWindow* parent);
+    virtual void SetFocus();
     virtual wxWindow *GetControl() { return this; }
     virtual void SetStringValue( const wxString& value );
     virtual wxString GetStringValue() const;
index 5176871dddcd8b3f8c76fdf3ddf52fa7db1afa0d..47b567d1efd222f4b13e20bfa9d7ecfd9a644549 100644 (file)
@@ -96,6 +96,18 @@ wxVListBoxComboPopup::~wxVListBoxComboPopup()
     Clear();
 }
 
+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.
+#ifdef __WXMSW__
+    //
+#else
+    wxVListBox::SetFocus();
+#endif
+}
+
 bool wxVListBoxComboPopup::LazyCreate()
 {
     // NB: There is a bug with wxVListBox that can be avoided by creating