+
+ // Standard event handling
+ void OnCut(wxCommandEvent& event);
+ void OnCopy(wxCommandEvent& event);
+ void OnPaste(wxCommandEvent& event);
+ void OnUndo(wxCommandEvent& event);
+ void OnRedo(wxCommandEvent& event);
+ void OnDelete(wxCommandEvent& event);
+ void OnSelectAll(wxCommandEvent& event);
+
+ void OnUpdateCut(wxUpdateUIEvent& event);
+ void OnUpdateCopy(wxUpdateUIEvent& event);
+ void OnUpdatePaste(wxUpdateUIEvent& event);
+ void OnUpdateUndo(wxUpdateUIEvent& event);
+ void OnUpdateRedo(wxUpdateUIEvent& event);
+ void OnUpdateDelete(wxUpdateUIEvent& event);
+ void OnUpdateSelectAll(wxUpdateUIEvent& event);
+
+protected:
+ virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
+
+ // common part of all ctors
+ void Init() { m_selectionOld = -1; }
+
+
+ // the previous selection (see MSWCommand() to see why it is needed)
+ int m_selectionOld;
+
+ // the current selection (also see MSWCommand())
+ wxString m_value;
+
+private:
+ DECLARE_DYNAMIC_CLASS_NO_COPY(wxComboBox)
+ DECLARE_EVENT_TABLE()