def HideScrollbars(Window): if not user32.ShowScrollBar(Window.Hwnd, SB_BOTH, 0): raise RuntimeError("could not show scrollbars")
def HideHorzScrollbar(Window): if not user32.ShowScrollBar(Window.Hwnd, SB_VERT, 0): raise RuntimeError("could not show vert scrollbar")
def ShowVertScrollbar(Window): if not user32.ShowScrollBar(Window.Hwnd, SB_VERT, 1): raise RuntimeError("could not show vert scrollbar")
def HideHorzScrollbar(Window): if not user32.ShowScrollBar(Window.Hwnd, SB_HORZ, 0): raise RuntimeError("could not show horz scrollbar")
def Hide(self): return bool(user32.ShowScrollBar(self.Hwnd, SB_CTL, 0)) def Enable(self): return bool(user32.EnableScrollBar(self.Hwnd, SB_CTL, ESB_ENABLE_BOTH))
def Show(self): return bool(user32.ShowScrollBar(self.Hwnd, SB_CTL, 1)) def Hide(self): return bool(user32.ShowScrollBar(self.Hwnd, SB_CTL, 0))