- virtual ~wxControl();
-
- // Simulates an event
- virtual void Command(wxCommandEvent& event) { ProcessCommand(event); }
-
- // implementation from now on
- // --------------------------
-
- // Calls the callback and appropriate event handlers
- bool ProcessCommand(wxCommandEvent& event);
-
- // OS2-specific
- virtual bool OS2OnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
-
- // For ownerdraw items
- virtual bool OS2OnDraw(WXDRAWITEMSTRUCT *WXUNUSED(item)) { return FALSE; };
- virtual bool OS2OnMeasure(WXMEASUREITEMSTRUCT *WXUNUSED(item)) { return FALSE; };
-
- wxList& GetSubcontrols() { return m_subControls; }
-
- void OnEraseBackground(wxEraseEvent& event);
-
-#if WXWIN_COMPATIBILITY
- virtual void SetButtonColour(const wxColour& WXUNUSED(col)) { }
- wxColour* GetButtonColour() const { return NULL; }
+ 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);
+ virtual wxString GetLabel() const { return m_label; }
+
+ //
+ // 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
+ );