亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? cscrollbar.cls

?? ktv場所的包房開房、迎賓、預定管理系統。
?? CLS
?? 第 1 頁 / 共 2 頁
字號:
VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "cScrollBar"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False

Option Explicit

' Constants - DrawEdge.Edge
Private Const BDR_RAISEDOUTER As Long = &H1                                  ' Raised outer edge.
Private Const BDR_SUNKENOUTER As Long = &H2                                  ' Sunken outer edge.
Private Const BDR_RAISEDINNER As Long = &H4                                  ' Raised inner edge.
Private Const BDR_SUNKENINNER As Long = &H8                                  ' Sunken inner edge.
Private Const EDGE_RAISED     As Long = (BDR_RAISEDOUTER Or BDR_RAISEDINNER) ' Combination of BDR_RAISEDOUTER and BDR_RAISEDINNER.
Private Const EDGE_SUNKEN     As Long = (BDR_SUNKENOUTER Or BDR_SUNKENINNER) ' Combination of BDR_SUNKENOUTER and BDR_SUNKENINNER.
Private Const EDGE_BUMP       As Long = (BDR_RAISEDOUTER Or BDR_SUNKENINNER) ' Combination of BDR_RAISEDOUTER and BDR_SUNKENINNER.
Private Const EDGE_ETCHED     As Long = (BDR_SUNKENOUTER Or BDR_RAISEDINNER) ' Combination of BDR_SUNKENOUTER and BDR_RAISEDINNER.

' Constants - DrawEdge.Flags
Private Const BF_LEFT                    As Long = &H1                                    ' Left side of border rectangle.
Private Const BF_TOP                     As Long = &H2                                    ' Top of border rectangle.
Private Const BF_RIGHT                   As Long = &H4                                    ' Right side of border rectangle.
Private Const BF_BOTTOM                  As Long = &H8                                    ' Bottom of border rectangle.
Private Const BF_TOPLEFT                 As Long = (BF_TOP Or BF_LEFT)                    ' Top and left side of border rectangle.
Private Const BF_TOPRIGHT                As Long = (BF_TOP Or BF_RIGHT)                   ' Top and right side of border rectangle.
Private Const BF_BOTTOMLEFT              As Long = (BF_BOTTOM Or BF_LEFT)                 ' Bottom and left side of border rectangle.
Private Const BF_BOTTOMRIGHT             As Long = (BF_BOTTOM Or BF_RIGHT)                ' Bottom and right side of border rectangle.
Private Const BF_RECT                    As Long = (BF_LEFT Or BF_TOP Or BF_RIGHT Or BF_BOTTOM) 'Entire border rectangle.
Private Const BF_DIAGONAL                As Long = &H10                                   ' Diagonal border.
Private Const BF_DIAGONAL_ENDTOPLEFT     As Long = (BF_DIAGONAL Or BF_TOP Or BF_LEFT)     ' Diagonal border. The end point is the top-left corner of the rectangle; the origin is bottom-right corner.
Private Const BF_DIAGONAL_ENDTOPRIGHT    As Long = (BF_DIAGONAL Or BF_TOP Or BF_RIGHT)    ' Diagonal border. The end point is the top-right corner of the rectangle; the origin is bottom-left corner.
Private Const BF_DIAGONAL_ENDBOTTOMLEFT  As Long = (BF_DIAGONAL Or BF_BOTTOM Or BF_LEFT)  ' Diagonal border. The end point is the bottom-left corner of the rectangle; the origin is top-right corner.
Private Const BF_DIAGONAL_ENDBOTTOMRIGHT As Long = (BF_DIAGONAL Or BF_BOTTOM Or BF_RIGHT) ' Diagonal border. The end point is the bottom-right corner of the rectangle; the origin is top-left corner.
Private Const BF_MIDDLE                  As Long = &H800                                  ' Interior of rectangle to be filled.
Private Const BF_SOFT                    As Long = &H1000                                 ' Soft buttons instead of tiles.
Private Const BF_ADJUST                  As Long = &H2000                                 ' Rectangle to be adjusted to leave space for client area.
Private Const BF_FLAT                    As Long = &H4000                                 ' Flat border.
Private Const BF_MONO                    As Long = &H8000                                 ' One-dimensional border.

' Constants - Local
Private Const ArrowBitmap_Height As Byte = 7      'PIXELS
Private Const ArrowBitmap_Width  As Byte = 4      'PIXELS
Private Const ScrollButton_Width As Byte = 17     'PIXELS
Private Const AutoScroll_Wait    As Integer = 333 'MILLISECONDS

' Variables - Class Properties
Private blnValueError  As Boolean
Private blnFlat        As Boolean
Private blnScrollHor   As Boolean
Private blnPixelate    As Boolean
Private blnWholeNums   As Boolean
Private intBorderStyle As Integer
Private dblMin         As Double
Private dblMax         As Double
Private dblValue       As Double
Private dblSmallChange As Double
Private dblLargeChange As Double
Private lngBackColor   As Long
Private lngForeColor   As Long
Private lngScrollColor As Long
Private picBackPicture As StdPicture
Private WithEvents objPicBox As PictureBox
Attribute objPicBox.VB_VarHelpID = -1

' Variables - Local
Private rScrollPos       As RECT
Private lngPicHeight     As Long
Private lngPicWidth      As Long
Private lngButtonWidth   As Long
Private lngButtonHeight  As Long
Private dblPreviousValue As Double
Private blnMouseDown     As Boolean
Private blnBtn_Increase  As Boolean
Private blnBtn_Decrease  As Boolean
Private blnBtn_Scroll    As Boolean
Private sngCurX          As Single
Private sngCurY          As Single
Private blnUsePixels     As Boolean

' Win32 Function Declarations
Private Declare Function DrawEdge Lib "USER32.DLL" (ByVal hDC As Long, ByRef pRECT As RECT, ByVal uEdge As Long, ByVal uFlags As Long) As Long 'BOOL
Private Declare Function FillRect Lib "USER32.DLL" (ByVal hDC As Long, ByRef pRECT As RECT, ByVal hBRUSH As Long) As Long 'int
Private Declare Function CreateSolidBrush Lib "GDI32.DLL" (ByVal lngColor As Long) As Long 'HBRUSH
Private Declare Function DeleteObject Lib "GDI32.DLL" (ByVal hObject As Long) As Long 'BOOL
Private Declare Function timeGetTime Lib "WINMM.DLL" () As Long

' Class custom events
Public Event Change()
Public Event Click()
Public Event DblClick()
Public Event GotFocus()
Public Event KeyDown(KeyCode As Integer, Shift As Integer)
Public Event KeyPress(KeyAscii As Integer)
Public Event KeyUp(KeyCode As Integer, Shift As Integer)
Public Event LostFocus()
Public Event MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Public Event MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Public Event MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Public Event OLECompleteDrag(Effect As Long)
Public Event OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)
Public Event OLEDragOver(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single, State As Integer)
Public Event OLEGiveFeedback(Effect As Long, DefaultCursors As Boolean)
Public Event OLESetData(Data As DataObject, DataFormat As Integer)
Public Event OLEStartDrag(Data As DataObject, AllowedEffects As Long)
Public Event Resize()



Private Sub Class_Initialize()
  
  ' Set initial class values
  blnValueError = True
  blnFlat = False
  blnScrollHor = True
  blnPixelate = True
  blnWholeNums = True
  intBorderStyle = 0
  dblMin = 0
  dblMax = 1
  dblValue = 0
  
  dblSmallChange = 1
  dblLargeChange = 1
  lngBackColor = TranslateColor(vbButtonFace)
  lngForeColor = TranslateColor(vbButtonText)
  lngScrollColor = TranslateColor(vbWindowBackground)
  
End Sub

Private Sub Class_Terminate()
  
  ' Cleanup used memory
  Set objPicBox = Nothing
  Set picBackPicture = Nothing
  
End Sub

' Sets the background color of the scroll box and scroll buttons
Public Property Get BackColor() As Long
  
  BackColor = lngBackColor
  
End Property
Public Property Let BackColor(ByVal NewValue As Long)
  
  Dim TempColor As Long
  TempColor = TranslateColor(NewValue)
  If TempColor <> -1 Then lngBackColor = TempColor
  DrawScrollbar
  
End Property


' Sets a picture to be drawn in the scroll area below the scroll box
Public Property Get BackgroundPicture() As StdPicture
  
  Set BackgroundPicture = picBackPicture
  
End Property
Public Property Set BackgroundPicture(ByVal NewValue As StdPicture)
  
  Set picBackPicture = NewValue
  
End Property


' If set to 0 (None), no border will be drawn around the scrollbar.
' If set to 1 (Fixed Single), a single line will be drawn around the scrollbar
Public Property Get BorderStyle() As Integer
  
  MousePointer = intBorderStyle
  
End Property
Public Property Let BorderStyle(ByVal NewValue As Integer)
  
  If NewValue = 0 Or NewValue = 1 Then
    intBorderStyle = NewValue
  Else
    Err.Raise 380, "cScrollBar.Value", "Invalid Property Value"
  End If
  
End Property


' If set to FALSE, the scrollbar will be drawn in 3D... like the standard VB scrollbar.
' If set to TRUE, the scrollbar will be drawn with a FLAT style
Public Property Get Flat() As Boolean
  
  Flat = blnFlat
  
End Property
Public Property Let Flat(ByVal NewValue As Boolean)
  
  blnFlat = NewValue
  DrawScrollbar
  
End Property


' Sets the color of the scroll arrows and border
Public Property Get ForeColor() As Long
  
  ForeColor = lngForeColor
  
End Property
Public Property Let ForeColor(ByVal NewValue As Long)
  
  Dim TempColor As Long
  TempColor = TranslateColor(NewValue)
  If TempColor <> -1 Then lngForeColor = TempColor
  DrawScrollbar
  
End Property


' If set to TRUE, the specified PictureBox will be drawn as a horizontal scrollbar (HScroll)
Public Property Get HorizontalScroll() As Boolean
  
  HorizontalScroll = blnScrollHor
  
End Property
Public Property Let HorizontalScroll(ByVal NewValue As Boolean)
  
  blnScrollHor = NewValue
  DrawScrollbar
  
End Property


' Sets how far to move the value if the user clicks between a scroll button and the scroll box
Public Property Get LargeChange() As Double
  
  LargeChange = dblLargeChange
  If blnWholeNums = True Then LargeChange = CDbl(Format(dblLargeChange, "0"))
  
End Property
Public Property Let LargeChange(ByVal NewValue As Double)
  
  dblLargeChange = NewValue
  If blnWholeNums = True Then dblLargeChange = CDbl(Format(dblLargeChange, "0"))
  
End Property


' Sets the maximum value of the scrollbar
Public Property Get Max() As Double
  
  Max = dblMax
  If blnWholeNums = True Then Max = CDbl(Format(dblMax, "0"))
  
End Property
Public Property Let Max(ByVal NewValue As Double)
  
  ' Max can't be less than min
  dblMax = NewValue
  
  ' If the value is greater than the max, change the value
  If blnWholeNums = True Then dblMax = CDbl(Format(dblMax, "0"))
  If dblMax = dblMin Then
    dblValue = dblMax
  ElseIf dblMax > dblMin Then
    If dblValue > dblMax Then
      dblValue = dblMax
    ElseIf dblValue < dblMin Then
      dblValue = dblMin
    End If
  ElseIf dblMax < dblMin Then
    If dblValue > dblMin Then
      dblValue = dblMin
    ElseIf dblValue < dblMax Then
      dblValue = dblMax
    End If
  End If
  
  DrawScrollbar
  
End Property


' Sets the minimum value of the scrollbar
Public Property Get Min() As Double
  
  Min = dblMin
  If blnWholeNums = True Then Min = CDbl(Format(dblMin, "0"))
  
End Property
Public Property Let Min(ByVal NewValue As Double)
  
  ' Min can't be greater than max
  dblMin = NewValue
  
  ' If the value is less than the min, change the value
  If blnWholeNums = True Then dblMin = CDbl(Format(dblMin, "0"))
  If dblMax = dblMin Then
    dblValue = dblMax
  ElseIf dblMax > dblMin Then
    If dblValue > dblMax Then
      dblValue = dblMax
    ElseIf dblValue < dblMin Then
      dblValue = dblMin
    End If
  ElseIf dblMax < dblMin Then
    If dblValue > dblMin Then
      dblValue = dblMin
    ElseIf dblValue < dblMax Then
      dblValue = dblMax
    End If
  End If
  
  DrawScrollbar
  
End Property


' Sets the mouse icon of the scrollbar.  If this is set, you must set the MousePointer property to vbCustom (99)
Public Property Get MouseIcon() As StdPicture
  
  Set MouseIcon = objPicBox.MouseIcon
  
End Property
Public Property Set MouseIcon(ByVal NewValue As StdPicture)
  
  Set objPicBox.MouseIcon = NewValue
  
End Property


' Sets which cursor will show when the user puts the cursor of the scrollbar
Public Property Get MousePointer() As MousePointerConstants
  
  MousePointer = objPicBox.MousePointer
  
End Property
Public Property Let MousePointer(ByVal NewValue As MousePointerConstants)
  
  objPicBox.MousePointer = NewValue
  
End Property


' Specifies which VB PictureBox to turn into a scrollbar
Public Property Get PictureBoxToUse() As Object
  
  Set PictureBoxToUse = objPicBox
  
End Property
Public Property Set PictureBoxToUse(ByVal NewValue As Object)
  
  Dim rRECT As RECT
  
  If NewValue.Appearance <> 0 Then
    Err.Raise -1, "cScrollBar.PictureBoxToUse", "The specified PictureBox control does not have the 'Appearance' property set to '0 - Flat'."
    Exit Property
  End If
  
  Set NewValue.Picture = Nothing
  NewValue.Align = 0 'None
  NewValue.AutoRedraw = True
  NewValue.AutoSize = False
  NewValue.BackColor = lngBackColor
  NewValue.BorderStyle = 0 'None
  NewValue.DrawMode = vbCopyPen
  NewValue.DrawStyle = vbSolid
  NewValue.DrawWidth = 1
  NewValue.FillColor = 0
  NewValue.ScaleMode = vbPixels
  NewValue.Visible = True
  
  blnUsePixels = ContainerScaleModeIsPixels(NewValue.Container)
  
  Set objPicBox = Nothing
  Set objPicBox = NewValue
  objPicBox.Cls
  
  DrawScrollbar
  
End Property


' If set to TRUE, the scroll area will be "pixelated" to look like scrollbars in Win9x
' If set to FALSE, no pixelation will be drawn on the scrollbar... so it will look like WinNT style scrollbars
Public Property Get PixelateScrollArea() As Boolean
  
  PixelateScrollArea = blnPixelate
  
End Property
Public Property Let PixelateScrollArea(ByVal NewValue As Boolean)
  
  blnPixelate = NewValue
  DrawScrollbar
  
End Property
 
' If set to TRUE and the user sets an invalid VALUE (greater than MAX or less than MIN) and error will be raised
Public Property Get RaiseErrorOnInvalidValue() As Boolean
  
  RaiseErrorOnInvalidValue = blnValueError
  
End Property
Public Property Let RaiseErrorOnInvalidValue(ByVal NewValue As Boolean)
  
  blnValueError = NewValue
  
End Property
 
' Sets the color of the scroll area

Public Property Get ScrollColor() As Long
  
  ScrollColor = lngScrollColor
  
End Property
Public Property Let ScrollColor(ByVal NewValue As Long)
  
  Dim TempColor As Long
  TempColor = TranslateColor(NewValue)
  If TempColor <> -1 Then lngScrollColor = TempColor
  DrawScrollbar
  
End Property
 
' Sets how much the value should change when the user clicks on a scroll button
Public Property Get SmallChange() As Double
  
  SmallChange = dblSmallChange
  If blnWholeNums = True Then SmallChange = CDbl(Format(dblSmallChange, "0"))
  
End Property
Public Property Let SmallChange(ByVal NewValue As Double)
  
  dblSmallChange = NewValue
  If blnWholeNums = True Then dblSmallChange = CDbl(Format(dblSmallChange, "0"))
  

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品乱码久久久久久按摩 | 国产日韩精品一区| 国产精品夫妻自拍| 韩国女主播一区| 欧美日韩精品三区| 亚洲国产精品人人做人人爽| 成人性视频免费网站| 日韩欧美一级精品久久| 日本不卡一区二区| 国产成人综合在线播放| 亚洲人成网站在线| 一区二区成人在线视频| 午夜精彩视频在线观看不卡| 欧美日韩在线观看一区二区| 精品999在线播放| 一区二区在线电影| 色婷婷国产精品| 国产精品国产三级国产aⅴ入口| 91女人视频在线观看| 日韩一区二区三区精品视频| 国产精品久久久久久户外露出| 51久久夜色精品国产麻豆| 国产精品麻豆视频| 99国产欧美另类久久久精品| 精品对白一区国产伦| 欧美日韩一区二区三区不卡| 高潮精品一区videoshd| 亚洲欧美一区二区视频| 国产一区中文字幕| 视频在线观看一区| 亚洲精品一二三| 精品捆绑美女sm三区| 亚洲成人久久影院| 色婷婷精品久久二区二区蜜臀av| 国产米奇在线777精品观看| 亚洲h在线观看| 亚洲狼人国产精品| 中文字幕在线观看一区| 国产性色一区二区| 久久www免费人成看片高清| 久久一夜天堂av一区二区三区| 久久9热精品视频| 夜夜夜精品看看| 日韩美女精品在线| 91碰在线视频| 成人av在线资源网站| 亚洲欧美一区二区三区久本道91| 国产三级一区二区| 国产日韩欧美不卡| 精品sm捆绑视频| 精品日韩在线一区| 欧美本精品男人aⅴ天堂| 在线成人av影院| 91精品国产麻豆| 国产成人综合在线| 国产91精品一区二区| 国产91精品精华液一区二区三区| 日本色综合中文字幕| 夜夜揉揉日日人人青青一国产精品| 一区二区三区不卡视频| 亚洲人成网站色在线观看| 中文字幕成人网| 国产日韩欧美不卡| 国产精品免费看片| 中文乱码免费一区二区| 国产精品成人免费在线| 国产精品久久久久一区| 国产精品久久久久久亚洲伦| 欧美激情一区二区三区四区| 国产精品系列在线| 亚洲人成在线观看一区二区| 亚洲色欲色欲www| 亚洲国产欧美日韩另类综合| 亚洲成人精品一区| 美国毛片一区二区三区| 国产毛片精品国产一区二区三区| 蜜臀va亚洲va欧美va天堂| 青青草原综合久久大伊人精品优势| 精品在线观看免费| 久久影音资源网| 国产视频一区二区在线观看| 中文字幕一区在线观看| 亚洲一区二区av在线| 日韩1区2区日韩1区2区| 久久99久久久欧美国产| 欧美性三三影院| 欧美色老头old∨ideo| 3atv在线一区二区三区| 2023国产一二三区日本精品2022| 中文成人av在线| 一区二区三区不卡视频| 激情成人午夜视频| av成人免费在线观看| 欧美高清视频www夜色资源网| 精品国产一区二区三区久久影院| 国产精品高清亚洲| 日韩电影一区二区三区| 国产精品亚洲一区二区三区妖精| 99re成人在线| 欧美电视剧免费观看| 国产精品日产欧美久久久久| 午夜视频在线观看一区二区 | 亚洲国产电影在线观看| 亚洲一级不卡视频| 国产麻豆视频一区| 欧美综合一区二区| 国产日韩av一区二区| 亚洲大片精品永久免费| 成人h动漫精品一区二| 91精品国产综合久久香蕉麻豆| 中文字幕久久午夜不卡| 日日骚欧美日韩| 97久久超碰国产精品| 日韩一区二区三区视频在线| 国产日韩欧美精品一区| 亚洲精品乱码久久久久久| 国产一区二区三区视频在线播放| 欧亚一区二区三区| 国产精品国产精品国产专区不蜜| 美女www一区二区| 欧美日韩一区二区三区在线| 国产精品乱码一区二区三区软件| 亚洲高清免费观看高清完整版在线观看 | 成人激情免费电影网址| 69堂成人精品免费视频| 亚洲黄色av一区| 国产精品一区二区三区四区| 欧美美女视频在线观看| 亚洲色图在线播放| 国产福利不卡视频| 欧美一卡二卡在线| 亚洲午夜一区二区三区| 成人高清av在线| 国产女人水真多18毛片18精品视频 | 久久天堂av综合合色蜜桃网| 日韩精品一级二级| 91豆麻精品91久久久久久| 国产精品欧美经典| 国产成人啪免费观看软件| 欧美mv日韩mv亚洲| 美女任你摸久久 | 国产精品久久久久久久久搜平片| 蜜臀av一级做a爰片久久| 欧美羞羞免费网站| 亚洲精品视频在线观看免费 | ww亚洲ww在线观看国产| 青青青爽久久午夜综合久久午夜| 欧美日韩国产高清一区| 亚洲一区二区三区四区不卡| 色天天综合久久久久综合片| 亚洲欧美成aⅴ人在线观看| 99精品欧美一区二区三区综合在线| 国产精品天美传媒| 国产麻豆视频一区二区| 欧美精品欧美精品系列| 精品一区二区三区视频在线观看| 精品人在线二区三区| 免费高清视频精品| 欧美xxxxxxxx| 激情综合一区二区三区| 久久精品一区蜜桃臀影院| 风间由美一区二区三区在线观看 | 色综合婷婷久久| 97久久超碰国产精品电影| 国产精品久久福利| 不卡的av中国片| 亚洲精品高清视频在线观看| 欧美日韩五月天| 蜜臀av性久久久久蜜臀aⅴ| 欧美一级爆毛片| 国产精品一区二区三区99| 国产喂奶挤奶一区二区三区| 成人精品电影在线观看| 综合久久久久久久| 欧美日韩另类一区| 亚洲r级在线视频| 国产日韩av一区二区| 91麻豆.com| 天堂蜜桃一区二区三区| 精品国产一区二区国模嫣然| 成人在线综合网站| 一区二区三区四区在线播放| 欧美日韩国产精品自在自线| 麻豆精品在线播放| 国产精品不卡一区二区三区| 欧美日韩一区二区三区视频| 日本美女一区二区三区视频| 欧美电视剧免费全集观看| 97se亚洲国产综合自在线不卡| 亚洲午夜电影在线| 精品国产髙清在线看国产毛片| 丁香网亚洲国际| 亚洲一区二区中文在线| 精品国产免费人成在线观看| 成人久久视频在线观看| 亚洲成av人影院| 国产女人水真多18毛片18精品视频| 91精品福利在线| 国内精品在线播放| 悠悠色在线精品|