X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a57d600f1aa4bae88f4c9b8d89a35332c412939e..317121eac556b34b3ca4ba87ab6b6c747ab7a0df:/include/wx/combo.h diff --git a/include/wx/combo.h b/include/wx/combo.h index 1076027de0..8c15a099c6 100644 --- a/include/wx/combo.h +++ b/include/wx/combo.h @@ -42,14 +42,11 @@ #if wxUSE_COMBOCTRL - -#include "wx/textctrl.h" -#include "wx/button.h" -#include "wx/combobox.h" +#include "wx/control.h" #include "wx/renderer.h" // this is needed for wxCONTROL_XXX flags #include "wx/bitmap.h" // wxBitmap used by-value - +class WXDLLIMPEXP_CORE wxTextCtrl; class WXDLLEXPORT wxComboPopup; // @@ -162,7 +159,11 @@ public: virtual void SetPopupControl( wxComboPopup* popup ); // get interface class instance derived from wxComboPopup - wxComboPopup* GetPopupControl() const { return m_popupInterface; } + wxComboPopup* GetPopupControl() + { + EnsurePopupControl(); + return m_popupInterface; + } // get the popup window containing the popup control wxWindow *GetPopupWindow() const { return m_winPopup; } @@ -374,8 +375,10 @@ protected: // Creates popup window, calls interface->Create(), etc void CreatePopup(); + // Destroy popup window and all related constructs + void DestroyPopup(); + // override the base class virtuals involved in geometry calculations - virtual void DoMoveWindow(int x, int y, int width, int height); virtual wxSize DoGetBestSize() const; // ensures there is atleast the default popup