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

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

?? candybutton.ctl

?? 糖果水晶按鈕,這個代碼支持XP按鈕,XP工具欄按鈕。
?? CTL
?? 第 1 頁 / 共 5 頁
字號:
End Sub

Private Function DrawPlasticButton(vState As eState)
    Select Case vState
        Case eHover
            DrawPlastic 0, 0, Picture1.ScaleWidth - 1, UserControl.ScaleHeight - 1, m_ColorButtonHover
        Case ePressed, eChecked
            DrawPlastic 0, 0, UserControl.ScaleWidth - 1, UserControl.ScaleHeight - 1, ColorButtonDown
        Case eNormal, eFocus
            DrawPlastic 0, 0, UserControl.ScaleWidth - 1, UserControl.ScaleHeight - 1, m_ColorButtonUp
    End Select
End Function

Private Sub DrawPlastic(x As Long, y As Long, Width As Long, Height As Long, Color As Long)
Dim i As Long, j As Long, HighlightColor As Long, ShadowColor As Long
Dim ptColor As Long, LinearGPercent As Long
    ShadowColor = BlendColors(vbBlack, Color, 50)
    
    For j = 0 To Height
        If j < CornerRadius Then
            HighlightColor = BlendColors(vbWhite, Color, j * 30 \ CornerRadius)
        End If
        LinearGPercent = Abs((2 * j - Height) * 100 \ Height)
        For i = 0 To Width \ 2
            If IsInRoundRect(i, j, 1, 1, Width - 2, Height - 2, CornerRadius) Then
                'Drawing the button properly
                If IsInRoundRect(i, j, 4, 2, Width - CornerRadius, 2 * CornerRadius - 1, 2 * CornerRadius \ 3) _
                And Not IsInRoundRect(i, j, 4, CornerRadius \ 2, Width - CornerRadius, 2 * CornerRadius - 1, 2 * CornerRadius \ 3) Then
                    ptColor = HighlightColor 'draw reflected highlight
                Else
                    ptColor = BlendColors(Color, m_ColorBright, LinearGPercent)
                End If
                SetPixelV Picture1.hdc, i + x, j + y, ptColor
                SetPixelV Picture1.hdc, x + Width - i, j + y, ptColor
            ElseIf IsInRoundRect(i, j, 0, 0, Width, Height, CornerRadius) Then
                'this draw a thin border
                SetPixelV Picture1.hdc, i + x, j + y, ShadowColor
                SetPixelV Picture1.hdc, x + Width - i, j + y, ShadowColor
            End If
        Next i
    Next j
End Sub

Private Sub CreateRoundedRegion(Width As Long, Height As Long, Radius As Long)
Dim i As Long, j As Long, i2 As Long, j2 As Long
Dim hRgn As Long
    CornerRadius = Radius
    'Create initial region
    hRgn = CreateRectRgn(0, 0, Width, Height)
    For j = 0 To Height
        For i = 0 To Width \ 2
            If IsInRoundRect(i, j, 0, 0, Width, Height, CornerRadius) = False Then
                'This will substract the pixels outside the rounded rectangle to make the
                'button transparent.
                If j <> j2 Then
                    'If 2 * i2 <> Width Then i2 = i2 + 1
                    ExcludePixelsFromRegion hRgn, Width - i2, j2, Width - i, j
                    If 2 * i2 <> Width Then i2 = i2 + 1
                    ExcludePixelsFromRegion hRgn, i, j, i2, j2
                End If
                i2 = i
                j2 = j
            End If
        Next i
    Next j
    Call SetWindowRgn(UserControl.hwnd, hRgn, True)
    DeleteObject hRgn
End Sub

Private Function IsInRoundRect(i As Long, j As Long, x As Long, y As Long, Width As Long, Height As Long, Radius As Long) As Boolean
Dim offX As Long, offY As Long
    offX = i - x
    offY = j - y
    If offY > Radius And offY + Radius < Height And _
       offX > Radius And offX + Radius < Width Then
       'This is to catch early most cases
        IsInRoundRect = True
    ElseIf offX < Radius And offY <= Radius Then
        If IsInCircle(offX - Radius, offY, Radius) Then IsInRoundRect = True
    ElseIf offX + Radius > Width And offY <= Radius Then
        If IsInCircle(offX - Width + Radius, offY, Radius) Then IsInRoundRect = True
    ElseIf offX < Radius And offY + Radius >= Height Then
        If IsInCircle(offX - Radius, offY - Height + Radius * 2, Radius) Then IsInRoundRect = True
    ElseIf offX + Radius > Width And offY + Radius >= Height Then
        If IsInCircle(offX - Width + Radius, offY - Height + Radius * 2, Radius) Then IsInRoundRect = True
    Else
        If offX > 0 And offX < Width And offY > 0 And offY < Height Then IsInRoundRect = True
    End If
End Function

Private Function IsInCircle(ByRef x As Long, ByRef y As Long, ByRef R As Long) As Boolean
Dim lResult As Long
    'this detect a circunference that has y centered on y=0 and x=0
    lResult = (R ^ 2) - (x ^ 2)
    If lResult >= 0 Then
        lResult = Sqr(lResult)
        If Abs(y - R) < lResult Then IsInCircle = True
    End If
End Function

Public Function BlendColors(ByRef Color1 As Long, ByRef Color2 As Long, ByRef Percentage As Long) As Long
Dim R(2) As Long, G(2) As Long, B(2) As Long
    
    Percentage = SetBound(Percentage, 0, 100)
    
    GetRGB R(0), G(0), B(0), Color1
    GetRGB R(1), G(1), B(1), Color2
    
    R(2) = R(0) + (R(1) - R(0)) * Percentage \ 100
    G(2) = G(0) + (G(1) - G(0)) * Percentage \ 100
    B(2) = B(0) + (B(1) - B(0)) * Percentage \ 100
    
    BlendColors = RGB(R(2), G(2), B(2))
End Function

Private Function SetBound(ByRef Num As Long, ByRef MinNum As Long, ByRef MaxNum As Long) As Long
    If Num < MinNum Then
        SetBound = MinNum
    ElseIf Num > MaxNum Then
        SetBound = MaxNum
    Else
        SetBound = Num
    End If
End Function

Public Sub GetRGB(ByRef R As Long, ByRef G As Long, ByRef B As Long, ByRef Color As Long)
Dim TempValue As Long
    TranslateColor Color, 0, TempValue
    R = TempValue And &HFF&
    G = (TempValue And &HFF00&) \ &H100&
    B = (TempValue And &HFF0000) \ &H10000
End Sub

Private Sub ExcludePixelsFromRegion(hRgn As Long, x1 As Long, y1 As Long, x2 As Long, y2 As Long)
    Dim hRgnTemp As Long
    hRgnTemp = CreateRectRgn(x1, y1, x2, y2)
    CombineRgn hRgn, hRgn, hRgnTemp, RGN_XOR
    DeleteObject hRgnTemp
End Sub

Private Function HiWord(lDWord As Long) As Integer
  HiWord = (lDWord And &HFFFF0000) \ &H10000
End Function

Private Function LoWord(lDWord As Long) As Integer
  If lDWord And &H8000& Then
    LoWord = lDWord Or &HFFFF0000
  Else
    LoWord = lDWord And &HFFFF&
  End If
End Function
'Read the properties from the property bag - also, a good place to start the subclassing (if we're running)
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
  Dim w As Long
  Dim h As Long
  Dim s As String
  
    Set Picture1.Font = PropBag.ReadProperty("Font", Ambient.Font)
    m_Caption = PropBag.ReadProperty("Caption", UserControl.Name)
    m_ForeColor = PropBag.ReadProperty("ForeColor", m_def_ForeColor)
    Set m_StdPicture = PropBag.ReadProperty("Picture", Nothing)
    m_PictureAlignment = PropBag.ReadProperty("PictureAlignment", m_def_PictureAlignment)
    m_Style = PropBag.ReadProperty("Style", 0)
    m_Checked = PropBag.ReadProperty("Checked", m_Checked)
    m_ColorButtonHover = PropBag.ReadProperty("ColorButtonHover", &HFFC090)
    m_ColorButtonUp = PropBag.ReadProperty("ColorButtonUp", &HE99950)
    m_ColorButtonDown = PropBag.ReadProperty("ColorButtonDown", &HE99950)
    m_ColorBright = PropBag.ReadProperty("ColorBright", &HFFEDB0)
    m_BorderBrightness = PropBag.ReadProperty("BorderBrightness", 0)
    m_DisplayHand = PropBag.ReadProperty("DisplayHand", False)
    m_ColorScheme = PropBag.ReadProperty("ColorScheme", 0)
    If m_DisplayHand Then UserControl.MousePointer = vbCustom Else UserControl.MousePointer = vbArrow
    UserControl.ForeColor = m_ForeColor
    
  If Ambient.UserMode Then                                                              'If we're not in design mode
    bTrack = True
    bTrackUser32 = IsFunctionExported("TrackMouseEvent", "User32")
  
    If Not bTrackUser32 Then
      If Not IsFunctionExported("_TrackMouseEvent", "Comctl32") Then
        bTrack = False
      End If
    End If
  
    If bTrack Then
      'OS supports mouse leave, so let's subclass for it
      With UserControl
        'Subclass the UserControl
        sc_Subclass .hwnd
        sc_AddMsg .hwnd, WM_MOUSEMOVE
        sc_AddMsg .hwnd, WM_MOUSELEAVE
      End With
    End If
  End If
End Sub

'The control is terminating - a good place to stop the subclasser
Private Sub UserControl_Terminate()
  sc_Terminate                                                              'Terminate all subclassing
End Sub

'Determine if the passed function is supported
Private Function IsFunctionExported(ByVal sFunction As String, ByVal sModule As String) As Boolean
  Dim hMod        As Long
  Dim bLibLoaded  As Boolean

  hMod = GetModuleHandleA(sModule)

  If hMod = 0 Then
    hMod = LoadLibraryA(sModule)
    If hMod Then
      bLibLoaded = True
    End If
  End If

  If hMod Then
    If GetProcAddress(hMod, sFunction) Then
      IsFunctionExported = True
    End If
  End If

  If bLibLoaded Then
    FreeLibrary hMod
  End If
End Function

'Track the mouse leaving the indicated window
Private Sub TrackMouseLeave(ByVal lng_hWnd As Long)
  Dim tme As TRACKMOUSEEVENT_STRUCT
  
  If bTrack Then
    With tme
      .cbSize = Len(tme)
      .dwFlags = TME_LEAVE
      .hwndTrack = lng_hWnd
    End With

    If bTrackUser32 Then
      TrackMouseEvent tme
    Else
      TrackMouseEventComCtl tme
    End If
  End If
End Sub

'-SelfSub code------------------------------------------------------------------------------------
Private Function sc_Subclass(ByVal lng_hWnd As Long, _
                    Optional ByVal lParamUser As Long = 0, _
                    Optional ByVal nOrdinal As Long = 1, _
                    Optional ByVal oCallback As Object = Nothing, _
                    Optional ByVal bIdeSafety As Boolean = True) As Boolean 'Subclass the specified window handle
'*************************************************************************************************
'* lng_hWnd   - Handle of the window to subclass
'* lParamUser - Optional, user-defined callback parameter
'* nOrdinal   - Optional, ordinal index of the callback procedure. 1 = last private method, 2 = second last private method, etc.
'* oCallback  - Optional, the object that will receive the callback. If undefined, callbacks are sent to this object's instance
'* bIdeSafety - Optional, enable/disable IDE safety measures. NB: you should really only disable IDE safety in a UserControl for design-time subclassing
'*************************************************************************************************
Const CODE_LEN      As Long = 260                                           'Thunk length in bytes
Const MEM_LEN       As Long = CODE_LEN + (8 * (MSG_ENTRIES + 1))            'Bytes to allocate per thunk, data + code + msg tables
Const PAGE_RWX      As Long = &H40&                                         'Allocate executable memory
Const MEM_COMMIT    As Long = &H1000&                                       'Commit allocated memory
Const MEM_RELEASE   As Long = &H8000&                                       'Release allocated memory flag
Const IDX_EBMODE    As Long = 3                                             'Thunk data index of the EbMode function address
Const IDX_CWP       As Long = 4                                             'Thunk data index of the CallWindowProc function address
Const IDX_SWL       As Long = 5                                             'Thunk data index of the SetWindowsLong function address
Const IDX_FREE      As Long = 6                                             'Thunk data index of the VirtualFree function address
Const IDX_BADPTR    As Long = 7                                             'Thunk data index of the IsBadCodePtr function address
Const IDX_OWNER     As Long = 8                                             'Thunk data index of the Owner object's vTable address
Const IDX_CALLBACK  As Long = 10                                            'Thunk data index of the callback method address
Const IDX_EBX       As Long = 16                                            'Thunk code patch index of the thunk data
Const SUB_NAME      As String = "sc_Subclass"                               'This routine's name

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品视频全国免费看| 久久综合久久综合久久| 亚洲精品日韩专区silk| 粉嫩在线一区二区三区视频| 精品国免费一区二区三区| 午夜久久久久久久久| 欧美亚洲丝袜传媒另类| 亚洲午夜免费电影| 欧美三级韩国三级日本三斤| 亚洲午夜一区二区| 欧美久久久久免费| 丝袜美腿亚洲综合| 91麻豆精品国产91久久久使用方法 | 欧美一区二区在线观看| 图片区日韩欧美亚洲| 在线播放亚洲一区| 日本少妇一区二区| 欧美成人猛片aaaaaaa| 另类小说视频一区二区| 精品日韩一区二区三区免费视频| 久久机这里只有精品| 久久众筹精品私拍模特| 精品亚洲国产成人av制服丝袜| 精品奇米国产一区二区三区| 久久爱www久久做| 久久久久国产成人精品亚洲午夜| 国产精一区二区三区| 国产欧美日韩在线| 94色蜜桃网一区二区三区| 中文字幕综合网| 欧美中文字幕亚洲一区二区va在线 | 日韩精品欧美精品| 日韩精品一区二区三区蜜臀| 精品一区二区综合| 国产日韩欧美不卡| 972aa.com艺术欧美| 亚洲最大的成人av| 欧美日韩黄色影视| 国内精品在线播放| 国产精品国产三级国产aⅴ中文| av中文字幕一区| 亚洲一区在线观看免费观看电影高清 | 成人av午夜影院| 亚洲午夜精品网| 日韩欧美国产电影| 成人免费视频视频| 亚洲一区二区三区爽爽爽爽爽 | 欧美国产乱子伦| 91国偷自产一区二区开放时间 | 日韩精品亚洲专区| 久久久久久久久久久黄色| 91捆绑美女网站| 日韩黄色在线观看| 中文字幕不卡一区| 欧美亚洲国产一区二区三区va | 国产99精品国产| 一区二区三区四区蜜桃| 欧美一激情一区二区三区| 韩国欧美国产一区| 亚洲精品亚洲人成人网在线播放| 欧美乱熟臀69xxxxxx| 国产精品原创巨作av| 一区二区三区鲁丝不卡| 欧美不卡一区二区| 91蜜桃免费观看视频| 免费人成黄页网站在线一区二区| 国产精品视频免费| 在线成人av网站| 国产aⅴ综合色| 日韩电影一区二区三区四区| 国产精品无人区| 日韩三级在线观看| 97se亚洲国产综合自在线不卡| 日本亚洲天堂网| 国产精品第13页| 精品电影一区二区| 欧美综合欧美视频| 国产69精品久久777的优势| 天涯成人国产亚洲精品一区av| 中文字幕不卡一区| 日韩一区二区三区四区| 色狠狠色噜噜噜综合网| 国产制服丝袜一区| 午夜日韩在线观看| 亚洲色图色小说| 精品99久久久久久| 欧美日韩国产一级| eeuss鲁片一区二区三区在线观看| 美女网站视频久久| 亚洲动漫第一页| 国产精品丝袜91| 久久综合av免费| 欧美乱妇15p| 91社区在线播放| 国产成人在线免费观看| 美国毛片一区二区| 一区二区三区在线视频播放| 中文字幕免费不卡在线| 久久综合一区二区| 日韩一区二区免费在线观看| 精品视频资源站| 一本到高清视频免费精品| 国产精品性做久久久久久| 人人狠狠综合久久亚洲| 亚洲成人免费av| 亚洲免费伊人电影| 国产精品天美传媒| 欧美精品一区二区三区蜜桃视频| 制服视频三区第一页精品| 日本韩国精品在线| 91免费看片在线观看| k8久久久一区二区三区| 亚洲精品在线观| 成人午夜免费视频| 五月婷婷综合激情| 一区二区高清免费观看影视大全| 中文字幕一区二区在线观看| 国产亚洲成aⅴ人片在线观看| 欧美变态tickling挠脚心| 91精品国产色综合久久不卡电影 | 天天影视涩香欲综合网| 一区二区三区四区国产精品| 亚洲婷婷在线视频| 亚洲色图欧美激情| 亚洲天天做日日做天天谢日日欢| 中文字幕在线不卡一区| 国产精品美女久久久久久久久| 亚洲国产高清在线| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 欧美自拍丝袜亚洲| 日本高清无吗v一区| 在线观看成人小视频| 欧美视频中文一区二区三区在线观看 | 国产一区999| 国产精品888| 成人h精品动漫一区二区三区| 成人免费毛片嘿嘿连载视频| 成人看片黄a免费看在线| 成人avav影音| 色综合久久久久综合体桃花网| 在线观看av一区二区| 欧美日韩一区三区| 91精品婷婷国产综合久久性色| 日韩精品一区二| 久久久国产精华| 国产精品成人网| 亚洲精选视频免费看| 亚洲一区二区三区四区在线免费观看| 亚洲成a天堂v人片| 美女网站视频久久| 国产盗摄一区二区| 99视频精品在线| 欧美性大战xxxxx久久久| 欧美一级生活片| 久久久综合视频| 亚洲色图都市小说| 亚洲www啪成人一区二区麻豆| 美国十次综合导航| 丁香另类激情小说| 在线观看网站黄不卡| 51精品国自产在线| 久久久影视传媒| 亚洲另类一区二区| 青青草原综合久久大伊人精品优势| 国产在线不卡一区| 91丨九色丨蝌蚪富婆spa| 欧美日韩免费一区二区三区视频 | 欧美日韩不卡视频| 久久亚洲捆绑美女| 亚洲欧美日韩一区| 日韩av中文在线观看| 国产成人日日夜夜| 91国偷自产一区二区开放时间| 日韩欧美美女一区二区三区| 欧美国产欧美综合| 亚洲bt欧美bt精品777| 国产精一区二区三区| 日本久久精品电影| 日韩免费高清电影| 国产精品女同互慰在线看| 亚洲va欧美va人人爽| 欧美视频一区在线| 久久久久久毛片| 亚洲影院在线观看| 国产福利精品导航| 欧美精品久久一区| 国产精品天天摸av网| 日本视频免费一区| 91在线视频免费观看| 日韩女优视频免费观看| 亚洲女人的天堂| 国产一区视频网站| 欧美视频自拍偷拍| 国产精品美女久久久久久久久| 日本女人一区二区三区| 91蜜桃传媒精品久久久一区二区| 精品成人在线观看| 亚洲午夜精品久久久久久久久| 国产成人aaa| 欧美不卡一区二区三区四区|