X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/096d5447522811eb785973a3b36266f899c135a3..1f0acb435592470b421b80df854fbbb08cd2853f:/include/wx/msw/listbox.h?ds=sidebyside diff --git a/include/wx/msw/listbox.h b/include/wx/msw/listbox.h index 38b1afcd15..0d9982bab8 100644 --- a/include/wx/msw/listbox.h +++ b/include/wx/msw/listbox.h @@ -59,6 +59,8 @@ public: const wxValidator& validator = wxDefaultValidator, const wxString& name = wxListBoxNameStr) { + Init(); + Create(parent, id, pos, size, choices, style, validator, name); } @@ -149,6 +151,8 @@ public: virtual void OnInternalIdle(); + virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam); + protected: virtual wxSize DoGetBestClientSize() const; @@ -190,6 +194,11 @@ private: // i.e. if we need to call SetHorizontalExtent() from OnInternalIdle() bool m_updateHorizontalExtent; + // flag set to true when we get a keyboard event and reset to false when we + // get a mouse one: this is used to find the correct item for the selection + // event + bool m_selectedByKeyboard; + DECLARE_DYNAMIC_CLASS_NO_COPY(wxListBox) };