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

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

?? xppbr.ctl

?? vb.net開發的考試系統,界面美觀
?? CTL
?? 第 1 頁 / 共 2 頁
字號:
VERSION 5.00
Begin VB.UserControl XP_ProgressBar 
   ClientHeight    =   990
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   3000
   ScaleHeight     =   990
   ScaleWidth      =   3000
End
Attribute VB_Name = "XP_ProgressBar"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
'/****************************************************************************
'    我為人人,人人為我!
'    枕善居收集漢化整理
'    http://www.mndsoft.com/blog/
'    e-mail:mnd@mndsoft.com
' ****************************************************************************/
'Mario Flores Cool Xp ProgressBar
'Emulating The Windows XP Progress Bar
'Open Source
'6 May 2004

'CD JUAREZ CHIHUAHUA MEXICO

Option Explicit

Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Private Declare Function CombineRgn Lib "gdi32" (ByVal hDestRgn As Long, ByVal hSrcRgn1 As Long, ByVal hSrcRgn2 As Long, ByVal nCombineMode As Long) As Long
Private Declare Function CreateCompatibleBitmap Lib "gdi32" (ByVal HDC As Long, ByVal nWidth As Long, ByVal nHeight As Long) As Long
Private Declare Function CreateCompatibleDC Lib "gdi32" (ByVal HDC As Long) As Long
Private Declare Function CreateDC Lib "gdi32" Alias "CreateDCA" (ByVal lpDriverName As String, ByVal lpDeviceName As String, ByVal lpOutput As String, lpInitData As Any) As Long
Private Declare Function CreateRectRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
Private Declare Function CreateSolidBrush Lib "gdi32" (ByVal crColor As Long) As Long
Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long
Private Declare Function DeleteDC Lib "gdi32" (ByVal HDC As Long) As Long
Private Declare Function DrawText Lib "user32" Alias "DrawTextA" (ByVal HDC As Long, ByVal lpStr As String, ByVal nCount As Long, lpRect As RECT, ByVal wFormat As Long) As Long
Private Declare Function FillRect Lib "user32" (ByVal HDC As Long, lpRect As RECT, ByVal hBrush As Long) As Long
Private Declare Function FrameRect Lib "user32" (ByVal HDC As Long, lpRect As RECT, ByVal hBrush As Long) As Long
Private Declare Function GetClientRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT) As Long
Private Declare Function GetSysColor Lib "user32" (ByVal nIndex As Long) As Long
Private Declare Function GradientFillRect Lib "msimg32" Alias "GradientFill" (ByVal HDC As Long, pVertex As TRIVERTEX, ByVal dwNumVertex As Long, pMesh As GRADIENT_RECT, ByVal dwNumMesh As Long, ByVal dwMode As Long) As Long
Private Declare Function SelectObject Lib "gdi32" (ByVal HDC As Long, ByVal hObject As Long) As Long
Private Declare Function SetBkColor Lib "gdi32" (ByVal HDC As Long, ByVal crColor As Long) As Long
Private Declare Function SetBkMode Lib "gdi32" (ByVal HDC As Long, ByVal nBkMode As Long) As Long
Private Declare Function SetPixelV Lib "gdi32" (ByVal HDC As Long, ByVal X As Long, ByVal Y As Long, ByVal crColor As Long) As Long
Private Declare Function SetTextColor Lib "gdi32" (ByVal HDC As Long, ByVal crColor As Long) As Long
Private Declare Function SetWindowRgn Lib "user32" (ByVal hwnd As Long, ByVal hRgn As Long, ByVal bRedraw As Long) As Long


Const RGN_DIFF        As Long = 4
Const DT_SINGLELINE   As Long = &H20


'=====================================================
'THE RECT STRUCTURE
Private Type RECT
    Left      As Long     'The RECT structure defines the coordinates of the upper-left and lower-right corners of a rectangle
    Top       As Long
    Right     As Long
    Bottom    As Long
End Type

'=====================================================
'THE TRIVERTEX STRUCTURE
Private Type TRIVERTEX
    X         As Long
    Y         As Long
    Red       As Integer     'The TRIVERTEX structure contains color information and position information.
    Green     As Integer
    Blue      As Integer
    Alpha     As Integer
End Type
'=====================================================

'=====================================================
'THE GRADIENT_RECT STRUCTURE
Private Type GRADIENT_RECT
    UPPERLEFT  As Long       'The GRADIENT_RECT structure specifies the index of two vertices in the pVertex array.
    LOWERRIGHT As Long       'These two vertices form the upper-left and lower-right boundaries of a rectangle.
End Type
'=====================================================

'=====================================================
'THE RGB STRUCTURE
Private Type RGB
    R         As Integer
    G         As Integer     'Selects a red, green, blue (RGB) color based on the arguments supplied
    B         As Integer
End Type
'=====================================================


Public Enum cScrolling
    ccScrollingStandard = 0
    ccScrollingSmooth = 1
    ccScrollingSearch = 2
End Enum

Public Enum cOrientation
    ccOrientationHorizontal = 0
    ccOrientationVertical = 1
End Enum

Private m_Scrolling   As cScrolling
Private m_Orientation As cOrientation

'----------------------------------------------------
Private m_Color      As OLE_COLOR
Private m_hDC        As Long
Private m_hWnd       As Long        'PROPERTIES VARIABLES
Private m_Max        As Long
Private m_Min        As Long
Private m_Value      As Long
Private m_ShowText   As Boolean
Private m_ShowInTask As Boolean
'----------------------------------------------------


Private m_MemDC    As Boolean
Private m_ThDC     As Long
Private m_hBmp     As Long
Private m_hBmpOld  As Long
Private iFnt       As IFont
Private m_fnt      As IFont
Private hFntOld    As Long
Private m_lWidth   As Long
Private m_lHeight  As Long
Private fPercent   As Double
Private TR         As RECT
Private TBR        As RECT
Private TSR        As RECT
Private lSegmentWidth   As Long
Private lSegmentSpacing As Long



'==========================================================
'/---Draw ALL ProgressXP Bar  !!!!PUBLIC CALL!!!
'==========================================================

Public Sub DrawProgressBar()

  GetClientRect m_hWnd, TR                '//--- Reference = Control Client Area
  
            
            DrawFillRectangle TR, vbWhite, m_hDC
            
            CalcBarSize                   '//--- Calculate Progress and Percent Values
  
            PBarDraw                      '//--- Draw Scolling Bar (Inside Bar)
          
            If m_Scrolling = 0 Then DrawDivisions  '//--- Draw SegmentSpacing (This Will Generate the Blocks Effect)
            
            DrawTexto
  
            pDrawBorder                  '//--- Draw The XP Look Border

    If m_MemDC Then
        With UserControl
        pDraw .HDC, 0, 0, .ScaleWidth, .ScaleHeight, .ScaleLeft, .ScaleTop
        End With
    End If

End Sub


'==========================================================
'/---Calculate Division Bars & Percent Values
'==========================================================

Private Sub CalcBarSize()

   lSegmentWidth = 8   '/-- Windows Default
   lSegmentSpacing = 2 '/-- Windows Default
         
   LSet TBR = TR

   fPercent = (m_Value - m_Min) / (m_Max - m_Min)
   If fPercent > 1# Then fPercent = 1#              '/--  0 < Percent < 100
   If fPercent < 0# Then fPercent = 0#
   
      If m_Orientation = 0 Then
      
      '=======================================================================================
      '                                 Calc Horizontal ProgressBar
      '---------------------------------------------------------------------------------------
         TBR.Right = TR.Left + (TR.Right - TR.Left) * fPercent
         TBR.Right = TBR.Right - ((TBR.Right - TBR.Left) Mod (lSegmentWidth + lSegmentSpacing))
         If TBR.Right < TR.Left Then
            TBR.Right = TR.Left
         End If
         If TBR.Right < TR.Left Then TBR.Right = TR.Left
         
      Else
      
      '=======================================================================================
      '                                 Calc Vertical ProgressBar
      '---------------------------------------------------------------------------------------
         fPercent = 1# - fPercent - 0.02
         TBR.Top = TR.Top + (TR.Bottom - TR.Top) * fPercent
         TBR.Top = TBR.Top - ((TBR.Top - TBR.Bottom) Mod (lSegmentWidth + lSegmentSpacing))
         If TBR.Top > TR.Bottom Then TBR.Top = TR.Bottom
    
         
      
      End If

End Sub

'==========================================================
'/---Draw Division Bars
'==========================================================

Private Sub DrawDivisions()
 Dim i As Long
 Dim hBR As Long
  
  hBR = CreateSolidBrush(vbWhite)
  
      LSet TSR = TR
      
      If m_Orientation = 0 Then
      
      '=======================================================================================
      '                                 Draw Horizontal ProgressBar
      '---------------------------------------------------------------------------------------
         For i = TBR.Left + lSegmentWidth To TBR.Right Step lSegmentWidth + lSegmentSpacing
            TSR.Left = i + 2
            TSR.Right = i + 2 + lSegmentSpacing
            FillRect m_hDC, TSR, hBR
         Next i
      '---------------------------------------------------------------------------------------
      
      Else
      
      '=======================================================================================
      '                                  Draw Vertical ProgressBar
      '---------------------------------------------------------------------------------------
         For i = TBR.Bottom To TBR.Top + lSegmentWidth Step -(lSegmentWidth + lSegmentSpacing)
            TSR.Top = i - 2
            TSR.Bottom = i - 2 + lSegmentSpacing
            FillRect m_hDC, TSR, hBR
         Next i
       '---------------------------------------------------------------------------------------
      
      End If
      
      DeleteObject hBR
     
End Sub


'==========================================================
'/---Draw The ProgressXP Bar Border  ;)
'==========================================================

Private Sub pDrawBorder()
Dim RTemp As RECT
 
 Let RTemp = TR
  
 RTemp.Left = TR.Left + 1: RTemp.Top = TR.Top + 1
 DrawRectangle RTemp, GetLngColor(&HBEBEBE), m_hDC
 RTemp.Left = TR.Left + 1: RTemp.Top = TR.Top + 2: RTemp.Right = TR.Right - 1: RTemp.Bottom = TR.Bottom - 1
 DrawRectangle RTemp, GetLngColor(&HEFEFEF), m_hDC
 DrawRectangle TR, GetLngColor(&H686868), m_hDC

 Call SetPixelV(m_hDC, 1, 1, GetLngColor(&H686868))
 Call SetPixelV(m_hDC, TR.Right - 2, 1, GetLngColor(&H686868))
 Call SetPixelV(m_hDC, 1, TR.Bottom - 2, GetLngColor(&H686868))
 Call SetPixelV(m_hDC, TR.Right - 2, TR.Bottom - 2, GetLngColor(&H686868))  '//--Clean Up Corners

End Sub


'==========================================================
'/---Draw The ProgressXP Bar ;)
'==========================================================

Private Sub PBarDraw()
Dim TempRect As RECT
Dim ITemp    As Long
 
If m_Orientation = 0 Then

    TempRect.Left = TBR.Right
    TempRect.Right = 2
    TempRect.Top = 8
    TempRect.Bottom = TR.Bottom - 6


    '=======================================================================================
    '                                 Draw Horizontal ProgressBar
    '---------------------------------------------------------------------------------------
     
     If m_Scrolling = ccScrollingSearch Then
         GoSub HorizontalSearch
     Else
         DrawGradient m_hDC, 2, 3, TBR.Right - 2, 6, GetRGBColors(ShiftColorXP(m_Color, 150)), GetRGBColors(m_Color)
         DrawFillRectangle TempRect, m_Color, m_hDC
         DrawGradient m_hDC, 2, TempRect.Bottom - 2, TBR.Right - 2, 6, GetRGBColors(m_Color), GetRGBColors(ShiftColorXP(m_Color, 150))
     End If
     
Else
    
    TempRect.Left = 7
    TempRect.Right = TR.Right - 8
    TempRect.Top = TBR.Top
    TempRect.Bottom = TR.Bottom
    
    '=======================================================================================
    '                                 Draw Vertical ProgressBar
    '---------------------------------------------------------------------------------------
   
    If m_Scrolling = ccScrollingSearch Then
         GoSub VerticalSearch
    Else
         DrawGradient m_hDC, 2, TBR.Top, 6, TR.Bottom, GetRGBColors(ShiftColorXP(m_Color, 150)), GetRGBColors(m_Color), 0
         DrawFillRectangle TempRect, m_Color, m_hDC
         DrawGradient m_hDC, TR.Right - 8, TBR.Top, 6, TR.Bottom, GetRGBColors(m_Color), GetRGBColors(ShiftColorXP(m_Color, 150)), 0
    End If
   
    '--------------------   <-------- Gradient Color From (- to +)
    '||||||||||||||||||||   <-------- Fill Color
    '--------------------   <-------- Gradient Color From (+ to -)

End If

Exit Sub

HorizontalSearch:
    
    
    For ITemp = 0 To 2
    
        With TempRect
          .Left = TBR.Right + ((lSegmentSpacing + 10) * ITemp)
          .Right = .Left + 10
          .Top = 8
          .Bottom = TR.Bottom - 6
          DrawGradient m_hDC, .Left, 3, 10, 6, GetRGBColors(ShiftColorXP(m_Color, 220 - (40 * ITemp))), GetRGBColors(ShiftColorXP(m_Color, 200 - (40 * ITemp)))
          DrawFillRectangle TempRect, ShiftColorXP(m_Color, 200 - (40 * ITemp)), m_hDC
          DrawGradient m_hDC, .Left, .Bottom - 2, 10, 6, GetRGBColors(ShiftColorXP(m_Color, 200 - (40 * ITemp))), GetRGBColors(ShiftColorXP(m_Color, 220 - (40 * ITemp)))
        End With
        
    Next ITemp

Return

VerticalSearch:
    
     
    For ITemp = 0 To 2
    
        With TempRect
          .Left = 8
          .Right = TR.Right - 8
          .Top = TBR.Top + ((lSegmentSpacing + 10) * ITemp)
          .Bottom = .Top + 10
          DrawGradient m_hDC, 2, .Top, 6, 10, GetRGBColors(ShiftColorXP(m_Color, 220 - (40 * ITemp))), GetRGBColors(ShiftColorXP(m_Color, 200 - (40 * ITemp)))
          DrawFillRectangle TempRect, ShiftColorXP(m_Color, 200 - (40 * ITemp)), m_hDC
          DrawGradient m_hDC, .Right, .Top, 6, 10, GetRGBColors(ShiftColorXP(m_Color, 200 - (40 * ITemp))), GetRGBColors(ShiftColorXP(m_Color, 220 - (40 * ITemp)))
        End With
        
    Next ITemp

Return



End Sub

'======================================================================
'DRAWS THE PERCENT TEXT ON PROGRESS BAR
Private Function DrawTexto()
Dim ThisText As String

 If m_Scrolling = ccScrollingSearch Then
    ThisText = "正在查找.."
 Else
    ThisText = (m_Max * m_Value) / 100 & " %"
 End If
 
  If (m_ShowText) Then
      Set iFnt = Font
      hFntOld = SelectObject(m_hDC, iFnt.hFont)
      SetBkMode m_hDC, 1
      SetTextColor m_hDC, vbBlack
      DrawText m_hDC, ThisText, -1, TR, DT_SINGLELINE Or 1 Or 4
      SelectObject m_hDC, hFntOld
   End If

End Function
'======================================================================

'======================================================================
'CONVERTION FUNCTION
Private Function GetLngColor(Color As Long) As Long
    
    If (Color And &H80000000) Then
        GetLngColor = GetSysColor(Color And &H7FFFFFFF)
    Else
        GetLngColor = Color
    End If
End Function
'======================================================================

'======================================================================
'CONVERTION FUNCTION

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美国产电影| 美腿丝袜亚洲三区| 精品久久人人做人人爽| 国产真实乱偷精品视频免| 亚洲欧美国产毛片在线| 欧美一级在线观看| 一本大道久久a久久综合| 蜜桃一区二区三区四区| 国产精品高潮呻吟久久| 欧美日韩国产经典色站一区二区三区| 精品在线观看免费| 亚洲第一综合色| 国产精品久久综合| 精品国一区二区三区| 欧美视频精品在线观看| 成人少妇影院yyyy| 精品一区免费av| 日本v片在线高清不卡在线观看| 国产精品久久三| 中文字幕精品三区| 91麻豆精品91久久久久久清纯| 久久精品国产**网站演员| 日韩免费一区二区| 欧美一级一级性生活免费录像| 日韩欧美国产高清| 国产喂奶挤奶一区二区三区| 国产精品久久久久7777按摩| 18成人在线观看| 午夜欧美大尺度福利影院在线看| 日本亚洲一区二区| 国产成人精品1024| 色综合咪咪久久| 一本大道久久a久久综合| 97国产一区二区| 99精品一区二区三区| thepron国产精品| 中文字幕乱码久久午夜不卡| 91精品国产高清一区二区三区| 欧美日韩国产精品自在自线| 欧美系列日韩一区| 在线观看区一区二| 欧美性猛交一区二区三区精品| 97精品久久久午夜一区二区三区| 99精品欧美一区二区三区小说| 99久久久久久99| 欧洲生活片亚洲生活在线观看| 欧美优质美女网站| 777精品伊人久久久久大香线蕉| 911精品产国品一二三产区| 日韩一区二区视频在线观看| 久久影院午夜论| 亚洲四区在线观看| 亚洲成人免费观看| 韩国av一区二区三区四区| 成人激情午夜影院| 欧美自拍丝袜亚洲| 久久一日本道色综合| 国产精品成人一区二区艾草| 亚洲香蕉伊在人在线观| 九一九一国产精品| 99re这里只有精品6| 91麻豆精品国产无毒不卡在线观看| 欧美成人精品1314www| 国产精品黄色在线观看| 日韩成人精品视频| 国产白丝网站精品污在线入口| 欧美日本乱大交xxxxx| 国产色综合一区| 日韩极品在线观看| 色呦呦日韩精品| 91精品国产综合久久蜜臀| 国产精品婷婷午夜在线观看| 亚洲成人你懂的| av不卡免费在线观看| 亚洲一区二区三区视频在线播放| 久久国产精品色| 欧美人与性动xxxx| 国产精品久久久久9999吃药| 久久99久久精品欧美| 91成人在线免费观看| 国产拍欧美日韩视频二区| 亚洲第一精品在线| 91性感美女视频| 国产日韩精品一区| 蜜桃久久av一区| 精品视频在线免费观看| 中文字幕欧美三区| 国产精品1区二区.| 日韩一本二本av| 丝袜诱惑制服诱惑色一区在线观看 | 日本中文一区二区三区| 91蜜桃免费观看视频| 国产精品美女一区二区三区 | 91精品国产91久久久久久一区二区 | 欧美一级精品在线| 日韩精品一卡二卡三卡四卡无卡| 欧美在线一二三| 亚洲女同ⅹxx女同tv| 99视频在线观看一区三区| 亚洲国产精品99久久久久久久久 | 在线成人av网站| 午夜欧美在线一二页| 欧美精品tushy高清| 视频一区二区国产| 欧美一区二区三区日韩| 捆绑变态av一区二区三区| 91精品国产福利| 国产在线播精品第三| 欧美高清一级片在线观看| 成人黄色在线视频| 一区二区三区四区在线免费观看| 在线免费精品视频| 免费在线观看不卡| 中文字幕欧美日韩一区| 在线观看亚洲成人| 国产在线视频不卡二| 亚洲人成网站在线| 精品99久久久久久| 色综合久久中文字幕综合网| 蜜臀91精品一区二区三区 | 国产精品一区久久久久| 亚洲欧洲精品天堂一级| 日韩色视频在线观看| 韩日欧美一区二区三区| 亚洲一区二区三区不卡国产欧美| 欧美mv日韩mv| 欧美日本一区二区三区| 成人一区在线观看| 久久99精品国产麻豆不卡| 久久久午夜电影| 在线观看国产日韩| 国产精品一区二区三区网站| 亚洲另类在线视频| 精品国产乱码久久| 欧美在线高清视频| 国产精品亚洲成人| 天天综合色天天综合| 亚洲国产精品激情在线观看| 91精选在线观看| 色老汉一区二区三区| 国产一区免费电影| 午夜不卡av在线| 亚洲狼人国产精品| 久久久久久久久久久久久久久99| 欧美三级欧美一级| 99久久精品情趣| 国产精品乡下勾搭老头1| 日韩二区三区在线观看| 亚洲精品伦理在线| 国产黄色成人av| 经典三级在线一区| 久久精品国产99| 强制捆绑调教一区二区| 亚洲一区免费视频| 亚洲人成人一区二区在线观看| 欧美国产1区2区| 国产精品色噜噜| 国产欧美日韩在线| 久久久久9999亚洲精品| 精品粉嫩超白一线天av| 精品国内片67194| 久久午夜国产精品| 久久久国产一区二区三区四区小说| 欧美不卡123| 亚洲精品一区二区精华| 国产亚洲污的网站| 国产精品天干天干在观线| 日本一区二区视频在线观看| 中文字幕精品一区二区三区精品 | 成人一区在线看| 色综合天天综合在线视频| 色综合久久99| 在线综合+亚洲+欧美中文字幕| 日韩欧美一级二级三级久久久| 日韩一区二区麻豆国产| 久久伊99综合婷婷久久伊| 中文字幕免费不卡在线| 亚洲色图制服丝袜| 亚洲福中文字幕伊人影院| 免费在线观看不卡| 成人丝袜18视频在线观看| 色国产精品一区在线观看| 欧美久久一区二区| 久久综合久久久久88| 亚洲欧美一区二区在线观看| 亚洲亚洲人成综合网络| 久久精品国产秦先生| a美女胸又www黄视频久久| 欧美日韩亚洲另类| 久久老女人爱爱| 亚洲视频香蕉人妖| 精品无码三级在线观看视频| 99国产精品国产精品毛片| 日韩视频一区在线观看| 国产精品麻豆视频| 青青草国产精品97视觉盛宴| 99精品国产热久久91蜜凸| 欧美一级日韩不卡播放免费| 中文字幕一区二区三区在线不卡| 石原莉奈在线亚洲二区|