Border style corrections, and more economical window sizes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2007-11-14 14:22:56 +00:00
parent 28b0f20e4c
commit 209e9baf33
12 changed files with 185 additions and 182 deletions

View File

@@ -218,9 +218,16 @@ DECLARE_EVENT_TABLE()
class WXDLLIMPEXP_RICHTEXT wxRichTextFontPreviewCtrl : public wxWindow
{
public:
wxRichTextFontPreviewCtrl(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& sz = wxDefaultSize, long style = 0) :
wxWindow(parent, id, pos, sz, style)
wxRichTextFontPreviewCtrl(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& sz = wxDefaultSize, long style = 0)
{
if ((style & wxBORDER_MASK) == wxBORDER_DEFAULT)
#ifdef __WXMSW__
style |= GetThemedBorderStyle();
#else
style |= wxBORDER_SUNKEN;
#endif
wxWindow::Create(parent, id, pos, sz, style);
SetBackgroundColour(*wxWHITE);
m_textEffects = 0;
}