summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8766aa0)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12145
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// using this macro allows constuctions like "wxSTD iostream" to work in
// either case
#if !wxUSE_IOSTREAMH
// using this macro allows constuctions like "wxSTD iostream" to work in
// either case
#if !wxUSE_IOSTREAMH
#else
#define wxSTD
#endif
#else
#define wxSTD
#endif
#elif defined(__WIN32__)
typedef int (__stdcall *WXFARPROC)();
#elif defined(__WXPM__)
#elif defined(__WIN32__)
typedef int (__stdcall *WXFARPROC)();
#elif defined(__WXPM__)
-# if (defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 )) || defined (__WATCOMC__)
+# if (defined(__VISAGECPP__) && (__IBMCPP__ < 400)) || defined (__WATCOMC__)
// VA 3.0 for some reason needs base data types when typedefing a proc proto???
typedef void* (_System *WXFARPROC)(unsigned long, unsigned long, void*, void*);
# else
// VA 3.0 for some reason needs base data types when typedefing a proc proto???
typedef void* (_System *WXFARPROC)(unsigned long, unsigned long, void*, void*);
# else
class WXDLLEXPORT wxButton: public wxButtonBase
{
public:
class WXDLLEXPORT wxButton: public wxButtonBase
{
public:
- inline wxButton() {}
- inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize, long style = 0,
+ inline wxButton() {}
+ inline wxButton( wxWindow* pParent
+ ,wxWindowID vId
+ ,const wxString& rsLabel
+ ,const wxPoint& rPos = wxDefaultPosition
+ ,const wxSize& rSize = wxDefaultSize
+ ,long lStyle = 0
- const wxValidator& validator = wxDefaultValidator,
+ ,const wxValidator& rValidator = wxDefaultValidator
- const wxString& name = wxButtonNameStr)
- {
- Create(parent, id, label, pos, size, style, validator, name);
- }
+ ,const wxString& rsName = wxButtonNameStr
+ )
+ {
+ Create( pParent
+ ,vId
+ ,rsLabel
+ ,rPos
+ ,rSize
+ ,lStyle
+#if wxUSE_VALIDATORS
+ ,rValidator
+#endif
+ ,rsName
+ );
+ }
- bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize, long style = 0,
+ bool Create( wxWindow* pParent
+ ,wxWindowID vId
+ ,const wxString& rsLabel
+ ,const wxPoint& rPos = wxDefaultPosition
+ ,const wxSize& rSize = wxDefaultSize
+ ,long lStyle = 0
- const wxValidator& validator = wxDefaultValidator,
+ ,const wxValidator& rValidator = wxDefaultValidator
- const wxString& name = wxButtonNameStr);
+ ,const wxString& rsName = wxButtonNameStr
+ );
- virtual void SetDefault();
+ virtual void SetDefault(void);
+ static wxSize GetDefaultSize(void);
+ virtual void Command(wxCommandEvent& rEvent);
+ virtual bool OS2Command( WXUINT uParam
+ ,WXWORD vId
+ );
+ virtual WXHBRUSH OnCtlColor( WXHDC hDC
+ ,WXHWND hWnd
+ ,WXUINT uCtlColor
+ ,WXUINT uMessage
+ ,WXWPARAM wParam
+ ,WXLPARAM lParam
+ );
+ void MakeOwnerDrawn(void);
- static wxSize GetDefaultSize();
+ virtual MRESULT WindowProc( WXUINT uMsg
+ ,WXWPARAM wParam
+ ,WXLPARAM lParam
+ );
- virtual void Command(wxCommandEvent& event);
- virtual bool OS2Command(WXUINT param, WXWORD id);
- virtual WXHBRUSH OnCtlColor(WXHDC pDC,
- WXHWND pWnd,
- WXUINT nCtlColor,
- WXUINT message,
- WXWPARAM wParam,
- WXLPARAM lParam);
- // send a notification event, return TRUE if processed
- bool SendClickEvent();
- virtual wxSize DoGetBestSize() const;
+ bool SendClickEvent(void);
+ virtual wxSize DoGetBestSize(void) const;
private:
DECLARE_DYNAMIC_CLASS(wxButton)
private:
DECLARE_DYNAMIC_CLASS(wxButton)
+}; // end of CLASS wxButton
wxFunction m_callback; // Callback associated with the window
#endif // WXWIN_COMPATIBILITY
wxFunction m_callback; // Callback associated with the window
#endif // WXWIN_COMPATIBILITY
//
// For controls like radiobuttons which are really composite
//
//
// For controls like radiobuttons which are really composite
//
//
WXDWORD GetExStyle(WXDWORD& rStyle) const;
//
WXDWORD GetExStyle(WXDWORD& rStyle) 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;}
+
+ int m_nXComp;
+ int m_nYComp;
DECLARE_EVENT_TABLE()
}; // end of wxControl
DECLARE_EVENT_TABLE()
}; // end of wxControl
{
long lModalStyle = lStyle ? wxDIALOG_MODAL : wxDIALOG_MODELESS ;
{
long lModalStyle = lStyle ? wxDIALOG_MODAL : wxDIALOG_MODELESS ;
Create( pParent
,-1
,rsTitle
Create( pParent
,-1
,rsTitle
// implementation only from now on
// -------------------------------
// implementation only from now on
// -------------------------------
+ void AlterChildPos(void);
// override some more virtuals
virtual bool Show(bool bShow = TRUE);
// override some more virtuals
virtual bool Show(bool bShow = TRUE);
#define wxUSE_CMDLINE_PARSER 1
#define wxUSE_CMDLINE_PARSER 1
+#define wxUSE_SPLASH 1
+
+#define NO_TEXT_WINDOW_STREAM 1
bool HandleSysCommand( WXWPARAM wParam
,WXLPARAM lParam
);
bool HandleSysCommand( WXWPARAM wParam
,WXLPARAM lParam
);
- bool HandleWindowParams( PWNDPARAMS pParams
- ,WXLPARAM lParam
- );
bool HandlePaletteChanged();
bool HandlePaletteChanged();
- bool HandlePresParamChanged(WXWPARAM wParam);
bool HandleSysColorChange(void);
bool HandleCtlColor(WXHBRUSH* hBrush);
bool HandleSetFocus(WXHWND hWnd);
bool HandleSysColorChange(void);
bool HandleCtlColor(WXHBRUSH* hBrush);
bool HandleSetFocus(WXHWND hWnd);
,int nY
,WXUINT uFlags
);
,int nY
,WXUINT uFlags
);
- bool HandleChar( WXWORD wParam
+ bool HandleChar( WXDWORD wParam
,WXLPARAM lParam
,bool bIsASCII = FALSE
);
bool HandleKeyDown( WXWORD wParam
,WXLPARAM lParam
);
,WXLPARAM lParam
,bool bIsASCII = FALSE
);
bool HandleKeyDown( WXWORD wParam
,WXLPARAM lParam
);
- bool HandleKeyUp( WXWORD wParam
+ bool HandleKeyUp( WXDWORD wParam
,WXLPARAM lParam
);
bool HandleQueryDragIcon(WXHICON* phIcon);
,WXLPARAM lParam
);
bool HandleQueryDragIcon(WXHICON* phIcon);
# define wxUSE_WCHAR_T 0
# elif defined(__WATCOMC__)
# define wxUSE_WCHAR_T 0
# define wxUSE_WCHAR_T 0
# elif defined(__WATCOMC__)
# define wxUSE_WCHAR_T 0
-# elif defined(__VISAGECPP__) && (__IBMCPP__ >= 400)
-# define wxUSE_WCHAR_T 1
+# elif defined(__VISAGECPP__) && (__IBMCPP__ < 400)
+# define wxUSE_WCHAR_T 0
# else
// add additional compiler checks if this fails
# define wxUSE_WCHAR_T 1
# else
// add additional compiler checks if this fails
# define wxUSE_WCHAR_T 1