Revamped border handling.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -82,15 +82,18 @@ bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
|
||||
height = 14;
|
||||
}
|
||||
|
||||
DWORD wstyle = WS_VISIBLE | WS_CHILD;
|
||||
WXDWORD exStyle = 0;
|
||||
WXDWORD wstyle = MSWGetStyle(style, & exStyle) ;
|
||||
|
||||
/*
|
||||
if ( m_windowStyle & wxCLIP_SIBLINGS )
|
||||
wstyle |= WS_CLIPSIBLINGS;
|
||||
*/
|
||||
|
||||
// Now create scrollbar
|
||||
DWORD _direction = (style & wxHORIZONTAL) ?
|
||||
SBS_HORZ: SBS_VERT;
|
||||
HWND scroll_bar = CreateWindowEx(MakeExtendedStyle(style), wxT("SCROLLBAR"), wxT("scrollbar"),
|
||||
HWND scroll_bar = CreateWindowEx(exStyle, wxT("SCROLLBAR"), wxT("scrollbar"),
|
||||
_direction | wstyle,
|
||||
0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)m_windowId,
|
||||
wxGetInstance(), NULL);
|
||||
|
Reference in New Issue
Block a user