#include "wx/event.h"
#include "wx/app.h"
#include "wx/brush.h"
+#include "wx/scrolwin.h"
#endif
#include "wx/stattext.h"
lSstyle |= DT_RIGHT;
else
lSstyle |= DT_LEFT;
+ //
+ // If the parent is a scrolled window the controls must
+ // have this style or they will overlap the scrollbars
+ //
+ if (pParent)
+ if (pParent->IsKindOf(CLASSINFO(wxScrolledWindow)) ||
+ pParent->IsKindOf(CLASSINFO(wxGenericScrolledWindow)))
+ lSstyle |= WS_CLIPSIBLINGS;
+
m_hWnd = (WXHWND)::WinCreateWindow( (HWND)GetHwndOf(pParent) // Parent window handle
,WC_STATIC // Window class
,(PSZ)rsLabel.c_str() // Initial Text
);
SubclassWin(m_hWnd);
- wxControl::SetFont(pParent->GetFont());
+ wxControl::SetFont(*wxSMALL_FONT);
SetSize( nX
,nY
,nWidth
,lParam
);
} // end of wxStaticText::OS2WindowProc
-
-