Lots of fixes for scrolling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -71,14 +71,6 @@ bool wxButton::Create(
|
||||
//
|
||||
if (m_windowStyle & wxCLIP_SIBLINGS )
|
||||
lStyle |= WS_CLIPSIBLINGS;
|
||||
//
|
||||
// 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)))
|
||||
lStyle |= WS_CLIPSIBLINGS;
|
||||
|
||||
m_hWnd = (WXHWND)::WinCreateWindow( GetHwndOf(pParent) // Parent handle
|
||||
,WC_BUTTON // A Button class window
|
||||
@@ -113,6 +105,7 @@ bool wxButton::Create(
|
||||
,rSize.x
|
||||
,rSize.y
|
||||
);
|
||||
delete pButtonFont;
|
||||
return TRUE;
|
||||
} // end of wxButton::Create
|
||||
|
||||
|
Reference in New Issue
Block a user