X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2004484f9b139978e86c3e9e102001a46f493576..9bd6a5037aa30e8fa46466509aee18abd14318a0:/include/wx/msw/textctrl.h diff --git a/include/wx/msw/textctrl.h b/include/wx/msw/textctrl.h index 3764644be4..4da1c0f7d3 100644 --- a/include/wx/msw/textctrl.h +++ b/include/wx/msw/textctrl.h @@ -13,15 +13,22 @@ #define _WX_TEXTCTRL_H_ #ifdef __GNUG__ -#pragma interface "textctrl.h" + #pragma interface "textctrl.h" #endif +#include "wx/setup.h" #include "wx/control.h" #if wxUSE_IOSTREAMH -#include + #include #else -#include + #include +#endif + +#if defined(__WIN95__) && !defined(__TWIN32__) + #define wxUSE_RICHEDIT 1 +#else + #define wxUSE_RICHEDIT 0 #endif WXDLLEXPORT_DATA(extern const char*) wxTextCtrlNameStr; @@ -138,8 +145,12 @@ public: // -------------- virtual void Command(wxCommandEvent& event); virtual bool MSWCommand(WXUINT param, WXWORD id); - inline bool IsRich() const { return m_isRich; } - inline void SetRichEdit(bool isRich) { m_isRich = isRich; } + +#if wxUSE_RICHEDIT + bool IsRich() const { return m_isRich; } + void SetRichEdit(bool isRich) { m_isRich = isRich; } +#endif + virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor, WXUINT message, WXWPARAM wParam, WXLPARAM lParam); @@ -149,7 +160,10 @@ public: virtual long MSWGetDlgCode(); protected: +#if wxUSE_RICHEDIT bool m_isRich; // Are we using rich text edit to implement this? +#endif + wxString m_fileName; DECLARE_EVENT_TABLE()