+ wxControl( wxWindow* pParent
+ ,wxWindowID vId
+ ,const wxPoint& rPos = wxDefaultPosition
+ ,const wxSize& rSize = wxDefaultSize
+ ,long lStyle = 0
+ ,const wxValidator& rValidator = wxDefaultValidator
+ ,const wxString& rsName = wxControlNameStr
+ )
+ {
+ Create( pParent
+ ,vId
+ ,rPos
+ ,rSize
+ ,lStyle
+ ,rValidator
+ ,rsName
+ );
+ }
+ virtual ~wxControl();
+
+ bool Create( wxWindow* pParent
+ ,wxWindowID vId
+ ,const wxPoint& rPos = wxDefaultPosition
+ ,const wxSize& rSize = wxDefaultSize
+ ,long lStyle = 0
+ ,const wxValidator& rValidator = wxDefaultValidator
+ ,const wxString& rsName = wxControlNameStr
+ );
+
+ virtual void SetLabel(const wxString& rsLabel);
+
+ //
+ // Simulates an event
+ //
+ virtual void Command(wxCommandEvent& rEvent) { ProcessCommand(rEvent); }
+
+ //
+ // Implementation from now on
+ // --------------------------
+ //
+
+ //
+ // Calls the callback and appropriate event handlers
+ //
+ bool ProcessCommand(wxCommandEvent& rEvent);
+
+ //
+ // For ownerdraw items
+ //
+ virtual bool OS2OnDraw(WXDRAWITEMSTRUCT* WXUNUSED(pItem)) { return FALSE; };
+ virtual long OS2OnMeasure(WXMEASUREITEMSTRUCT* WXUNUSED(pItem)) { return 0L; };
+
+ wxArrayLong& GetSubcontrols() { return m_aSubControls; }
+ void OnEraseBackground(wxEraseEvent& rEvent);
+ virtual WXHBRUSH OnCtlColor( WXHDC hDC
+ ,WXHWND pWnd
+ ,WXUINT nCtlColor
+ ,WXUINT uMessage
+ ,WXWPARAM wParam
+ ,WXLPARAM lParam
+ );
+
+public:
+ //
+ // For controls like radiobuttons which are really composite
+ //
+ wxArrayLong m_aSubControls;
+
+ virtual wxSize DoGetBestSize(void) const;