+public:
+ //
+ // For controls like radiobuttons which are really composite
+ //
+ wxArrayLong m_aSubControls;
+
+ virtual wxSize DoGetBestSize(void) const;
+
+ //
+ // Create the control of the given PM class
+ //
+ bool OS2CreateControl( const wxChar* zClassname
+ ,const wxString& rsLabel
+ ,const wxPoint& rPos
+ ,const wxSize& rSize
+ ,long lStyle
+ );
+ //
+ // Create the control of the given class with the given style, returns FALSE
+ // if creation failed.
+ //
+ bool OS2CreateControl( const wxChar* zClassname
+ ,WXDWORD dwStyle
+ ,const wxPoint& rPos = wxDefaultPosition
+ ,const wxSize& rSize = wxDefaultSize
+ ,const wxString& rsLabel = wxEmptyString
+ ,WXDWORD dwExstyle = (WXDWORD)-1
+ );
+
+ //
+ // Default style for the control include WS_TABSTOP if it AcceptsFocus()
+ //
+ virtual WXDWORD OS2GetStyle( long lStyle
+ ,WXDWORD* pdwExstyle
+ ) const;
+
+ inline int GetXComp(void) const {return m_nXComp;}
+ inline int GetYComp(void) const {return m_nYComp;}
+ inline void SetXComp(const int nXComp) {m_nXComp = nXComp;}
+ inline void SetYComp(const int nYComp) {m_nYComp = nYComp;}
+
+private:
+ int m_nXComp;
+ int m_nYComp;
+ DECLARE_EVENT_TABLE()
+}; // end of wxControl
+
+#if WXWIN_COMPATIBILITY
+ inline void wxControl::Callback(const wxFunction f) { m_callback = f; };
+ inline wxFont& wxControl::GetLabelFont(void) const { return GetFont(); }
+ inline wxFont& wxControl::GetButtonFont(void) const { return GetFont(); }
+ inline void wxControl::SetLabelFont(const wxFont& rFont) { SetFont(rFont); }
+ inline void wxControl::SetButtonFont(const wxFont& rFont) { SetFont(rFont); }
+#endif // WXWIN_COMPATIBILITY
+
+#endif // _WX_CONTROL_H_