亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
亚洲五码中文字幕| 欧洲av一区二区嗯嗯嗯啊| 九色|91porny| 丝袜美腿亚洲色图| 日韩精品一区第一页| 久久精品亚洲精品国产欧美kt∨| 亚洲精品国产高清久久伦理二区| 极品美女销魂一区二区三区| 色综合久久综合| 欧美精品一区二区三区蜜桃 | 久久精品视频一区二区三区| 在线一区二区三区四区| 亚洲国产精品久久人人爱| 欧美福利电影网| 久久99精品国产| 国产精品久久一卡二卡| 欧美美女黄视频| 久久99日本精品| 成人欧美一区二区三区小说| 97久久超碰国产精品| 亚洲一区二区三区中文字幕| 91麻豆精品国产91久久久久| 国产成人小视频| 丝袜诱惑制服诱惑色一区在线观看 | 亚洲国产一区二区三区| 欧美日韩精品一区二区三区四区| 久久精品国产99国产精品| 中文字幕亚洲精品在线观看| 欧美www视频| 在线亚洲免费视频| 成人少妇影院yyyy| 色婷婷av一区二区三区gif | 成人av在线播放网站| 91视频免费观看| 国产精品资源在线| 色吊一区二区三区| 国产精品1区2区| 久久99精品久久久久久| 国模冰冰炮一区二区| 宅男在线国产精品| 久久人人爽人人爽| 亚洲欧美日韩一区二区| 色噜噜久久综合| 亚洲成人三级小说| 在线不卡a资源高清| 美女视频黄 久久| 久久久.com| 97久久人人超碰| 亚洲成av人影院在线观看网| 久久免费午夜影院| 欧美成人高清电影在线| 欧美老人xxxx18| 精品成人在线观看| 一区二区三区四区高清精品免费观看| 99在线视频精品| 91一区二区三区在线观看| 91九色最新地址| 久久精品一区四区| 麻豆免费看一区二区三区| 日韩欧美一区二区久久婷婷| 久久精品国产精品青草| 国产精品热久久久久夜色精品三区| 成人福利在线看| 日韩电影在线观看电影| 久久影院午夜片一区| proumb性欧美在线观看| 亚洲二区在线观看| 国产视频在线观看一区二区三区| 一区二区三区欧美久久| 一区二区三区美女视频| 国产伦精品一区二区三区视频青涩| 91在线免费视频观看| 精品欧美久久久| 免费观看在线综合| 91精品国产色综合久久不卡蜜臀| 亚洲国产精品t66y| 成人性生交大片免费看视频在线 | 成人综合婷婷国产精品久久蜜臀 | 国产精品激情偷乱一区二区∴| 午夜电影久久久| 91麻豆国产香蕉久久精品| 中文字幕乱码久久午夜不卡| 国产一区二区精品久久91| 精品国产凹凸成av人导航| 国内精品伊人久久久久影院对白| 亚洲精品在线观| 欧美一区二区在线不卡| 欧美久久久久久蜜桃| 91官网在线观看| 在线看日本不卡| 色一情一乱一乱一91av| 91首页免费视频| aaa亚洲精品| 欧美怡红院视频| 欧洲生活片亚洲生活在线观看| 99r国产精品| 色噜噜狠狠成人网p站| 色婷婷综合久色| 欧美区一区二区三区| 日韩欧美专区在线| 久久精品在这里| 夜夜嗨av一区二区三区中文字幕| 中文字幕一区二区三区av| 亚洲色图都市小说| 石原莉奈在线亚洲三区| 激情五月播播久久久精品| 国产乱一区二区| 欧美午夜精品一区二区三区| 3d动漫精品啪啪一区二区竹菊| 欧美大胆人体bbbb| 国产精品久久毛片av大全日韩| 亚洲一区国产视频| 国产精品亚洲一区二区三区妖精 | 欧美成人精品福利| 中文字幕一区在线| 理论片日本一区| 91黄视频在线| 国产精品污网站| 蜜桃av一区二区在线观看| 色综合久久99| 国产色产综合产在线视频| 亚洲综合在线免费观看| 国产高清精品网站| 欧美三级三级三级爽爽爽| 国产人伦精品一区二区| 日韩和欧美的一区| 精品亚洲欧美一区| 亚洲二区在线视频| 天天影视网天天综合色在线播放 | 男人的天堂亚洲一区| 麻豆精品在线看| 成人午夜电影久久影院| 亚洲黄色录像片| 日韩美女啊v在线免费观看| 亚洲欧美另类小说| 天天综合色天天综合色h| 狠狠色丁香久久婷婷综合丁香| 国产精一区二区三区| av一区二区三区黑人| 欧美日韩视频在线一区二区| 欧美r级在线观看| 亚洲精品一区二区三区在线观看| 中文字幕一区在线观看视频| 亚洲国产三级在线| 韩国v欧美v亚洲v日本v| 91麻豆精品在线观看| 777色狠狠一区二区三区| 337p日本欧洲亚洲大胆色噜噜| 国产精品网曝门| 亚洲福利一二三区| 国产精品影音先锋| 欧美日韩黄色影视| 国产亚洲综合在线| 亚洲高清中文字幕| 成人影视亚洲图片在线| 555www色欧美视频| 综合色中文字幕| 美腿丝袜亚洲三区| 91视频观看视频| 精品精品国产高清a毛片牛牛| 亚洲欧洲在线观看av| 紧缚奴在线一区二区三区| 欧美中文字幕一区| 国产欧美日韩视频一区二区| 日韩激情在线观看| 91丝袜美腿高跟国产极品老师| 日韩欧美成人一区| 亚洲电影一级片| 95精品视频在线| 国产网站一区二区三区| 日本欧美一区二区在线观看| 91免费版pro下载短视频| 久久你懂得1024| 激情综合色播激情啊| 欧美日韩久久一区| 亚洲欧洲精品一区二区三区| 国产老肥熟一区二区三区| 91麻豆精品国产91久久久使用方法| 亚洲欧美一区二区在线观看| 国产麻豆欧美日韩一区| 欧美日韩国产电影| 亚洲愉拍自拍另类高清精品| 白白色 亚洲乱淫| 国产亚洲精品久| 国产九色sp调教91| 久久伊人蜜桃av一区二区| 强制捆绑调教一区二区| 3atv一区二区三区| 午夜精品免费在线观看| 欧美做爰猛烈大尺度电影无法无天| 国产精品第四页| 91原创在线视频| 亚洲精品欧美二区三区中文字幕| 9色porny自拍视频一区二区| 中文字幕一区二区三区视频| a级精品国产片在线观看| 中文字幕一区二区三区在线播放 | 99久久国产综合精品女不卡| 国产天堂亚洲国产碰碰| 国产自产高清不卡|