예제 #1
0
def HideScrollbars(Window):
	if not user32.ShowScrollBar(Window.Hwnd, SB_BOTH, 0):
		raise RuntimeError("could not show scrollbars")	
예제 #2
0
def HideHorzScrollbar(Window):
	if not user32.ShowScrollBar(Window.Hwnd, SB_VERT, 0):
		raise RuntimeError("could not show vert scrollbar")
예제 #3
0
def ShowVertScrollbar(Window):
	if not user32.ShowScrollBar(Window.Hwnd, SB_VERT, 1):
		raise RuntimeError("could not show vert scrollbar")
예제 #4
0
def HideHorzScrollbar(Window):
	if not user32.ShowScrollBar(Window.Hwnd, SB_HORZ, 0):
		raise RuntimeError("could not show horz scrollbar")
예제 #5
0
	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))
예제 #6
0
	def Show(self): return bool(user32.ShowScrollBar(self.Hwnd, SB_CTL, 1))
	def Hide(self): return bool(user32.ShowScrollBar(self.Hwnd, SB_CTL, 0))