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

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

?? xpbutton.ctl

?? 超市的管理與及時的維護
?? CTL
?? 第 1 頁 / 共 5 頁
字號:
    Next
End Select
Exit Function

OptionToggleError:
Debug.Print "Err in OptionToggle: " & Err.Description
End Function

Friend Sub TimerUpdate(lvTimerID As Long)

' pretty good way to determine when cursor moves outside of any shape region
' especially useful for my diagonal/round buttons since they are not your typical
' rectangular shape.

Dim mousePt As POINTAPI, cRect As RECT
GetCursorPos mousePt
If WindowFromPoint(mousePt.x, mousePt.y) <> UserControl.hwnd Then
    ' when exits button area, kill the timer
    KillTimer UserControl.hwnd, lvTimerID
    myProps.bStatus = myProps.bStatus And Not 4
    bTimerActive = False
    bNoRefresh = False
    RaiseEvent MouseOnButton(False)
    bKeyDown = False
    Refresh
End If
End Sub

Private Sub CalculateBoundingRects(adjWidth As Long, bFullRecalc As Boolean, Optional lEdge As Long)

' Routine measures and places the rectangles to draw
' the caption and image on the control. The results
' are cached so this routine doesn't need to run
' every time the button is redrawn/painted

Dim cRect As RECT, tRect As RECT, iRect As RECT
Dim imgOffset As RECT, bImgWidthAdj As Boolean, bImgHeightAdj As Boolean
Dim rEdge As Long, iEdge As Long

' calculations needed for diagonal buttons
Select Case myProps.bShape
Case lv_RightDiagonal
    rEdge = myProps.bSegPts.y + ((ScaleWidth - myProps.bSegPts.y) \ 3)
    adjWidth = rEdge
Case lv_LeftDiagonal
    lEdge = myProps.bSegPts.x - (myProps.bSegPts.x \ 3)
    rEdge = ScaleWidth
    adjWidth = ScaleWidth - lEdge
Case lv_FullDiagonal
    lEdge = myProps.bSegPts.x - (myProps.bSegPts.x \ 3)
    rEdge = myProps.bSegPts.y + ((ScaleWidth - myProps.bSegPts.y) \ 3)
    adjWidth = rEdge - lEdge
Case Else
    adjWidth = myProps.bSegPts.y
    rEdge = ScaleWidth
End Select
' return variables to drawing switchboard
If Not bFullRecalc Then Exit Sub

If (myImage.SourceSize.x + myImage.SourceSize.y) > 0 Then
    ' image in use, calculations for image rectangle
    If myImage.Size < 33 Then
        Select Case myImage.Align
        Case lv_LeftEdge, lv_LeftOfCaption
            imgOffset.Left = myImage.Size
            bImgWidthAdj = True
        Case lv_RightEdge, lv_RightOfCaption
            imgOffset.Right = myImage.Size
            bImgWidthAdj = True
        Case lv_TopCenter
            imgOffset.Top = myImage.Size
            bImgHeightAdj = True
        Case lv_BottomCenter
            imgOffset.Bottom = myImage.Size
            bImgHeightAdj = True
        End Select
    End If
End If


If Len(myProps.bCaption) Then
    Dim sCaption As String  ' note: Replace$ not compatible with VB5
    sCaption = Replace$(myProps.bCaption, "||", vbNewLine)
    ' calculate total available button width available for text
    cRect.Right = adjWidth - 12 - (myImage.Size * Abs(CInt(bImgWidthAdj)))
    cRect.Bottom = ScaleHeight - 12 - (myImage.Size * Abs(CInt(bImgHeightAdj = True And myImage.Align > lv_RightOfCaption)))
    ' calculate size of rectangle to hold that text, using multiline flag
    'DrawText ButtonDC.hDC, sCaption, Len(sCaption), cRect, DT_CALCRECT Or DT_WORDBREAK
    'Modify for Chinese
       'th = UserControl.TextHeight("gW")
       'th = UserControl.TextWidth("W")
       'tn = LenB(StrConv(elTex, vbFromUnicode))

    DrawText ButtonDC.hDC, sCaption, LenB(StrConv(sCaption, vbFromUnicode)), cRect, DT_CALCRECT Or DT_WORDBREAK
    
    If myProps.bCaptionStyle Then
        cRect.Right = cRect.Right + 2
        cRect.Bottom = cRect.Bottom + 2
    End If
End If

' now calculate the position of the text rectangle
If Len(myProps.bCaption) Then
    tRect = cRect
    Select Case myProps.bCaptionAlign
    Case vbLeftJustify
        OffsetRect tRect, imgOffset.Left + lEdge + 6 + (Abs(CInt(imgOffset.Left > 0) * 6)), 0
    Case vbRightJustify
        OffsetRect tRect, rEdge - imgOffset.Right - 6 - cRect.Right - (Abs(CInt(imgOffset.Right > 0) * 6)), 0
    Case vbCenter
        If imgOffset.Left > 0 And myImage.Align = lv_LeftOfCaption Then
            OffsetRect tRect, (adjWidth - (imgOffset.Left + cRect.Right + 6)) \ 2 + lEdge + 6 + imgOffset.Left, 0
        Else
            If imgOffset.Right > 0 And myImage.Align = lv_RightOfCaption Then
                OffsetRect tRect, (adjWidth - (imgOffset.Right + cRect.Right + 6)) \ 2 + lEdge, 0
            Else
                OffsetRect tRect, ((adjWidth - (imgOffset.Left + imgOffset.Right)) - cRect.Right) \ 2 + lEdge + imgOffset.Left, 0
            End If
        End If
    End Select
Else
    cRect.Bottom = -3
End If
If (myImage.SourceSize.x + myImage.SourceSize.y) > 0 Then
    ' finalize image rectangle position
    Select Case myImage.Align
    Case lv_LeftEdge
        iRect.Left = lEdge + 6
    Case lv_LeftOfCaption
        If Len(myProps.bCaption) Then
            iRect.Left = tRect.Left - 6 - imgOffset.Left
        Else
            iRect.Left = lEdge + 6
        End If
    Case lv_RightOfCaption
        If Len(myProps.bCaption) Then
            iRect.Left = tRect.Right + 6
        Else
            iRect.Left = rEdge - 6 - imgOffset.Right
        End If
    Case lv_RightEdge
        iRect.Left = rEdge - 6 - imgOffset.Right
    Case lv_TopCenter
        iRect.Top = (ScaleHeight - (cRect.Bottom + imgOffset.Top)) \ 2
        OffsetRect tRect, 0, iRect.Top + 2 + imgOffset.Top
    Case lv_BottomCenter
        iRect.Top = (ScaleHeight - (cRect.Bottom + imgOffset.Bottom)) \ 2 + cRect.Bottom + 3
        OffsetRect tRect, 0, iRect.Top - 2 - cRect.Bottom
    End Select
    If myImage.Align < lv_TopCenter Then
        OffsetRect tRect, 0, (ScaleHeight - cRect.Bottom) \ 2
        iRect.Top = (ScaleHeight - myImage.Size) \ 2
    Else
        iRect.Left = (adjWidth - myImage.Size) \ 2 + lEdge
    End If
    iRect.Right = iRect.Left + myImage.Size
    iRect.Bottom = iRect.Top + myImage.Size
Else
    OffsetRect tRect, 0, (ScaleHeight - cRect.Bottom) \ 2
End If
' sanity checks
If tRect.Top < 6 Then tRect.Top = 6
If tRect.Left < 6 Then tRect.Left = 6
If tRect.Right > rEdge Then tRect.Right = rEdge
If tRect.Bottom > ScaleHeight - 6 Then tRect.Bottom = ScaleHeight - 6
myProps.bRect = tRect
If iRect.Top < 6 Then iRect.Top = 6
If iRect.Left < 6 Then iRect.Left = 6
If iRect.Right > rEdge Then iRect.Right = rEdge
If iRect.Bottom > ScaleHeight - 6 Then iRect.Bottom = ScaleHeight - 6
myImage.iRect = iRect
End Sub

Private Sub GetSetOffDC(bSet As Boolean)

' This sets up our off screen DC & pastes results onto our control.

If bSet = True Then
    If ButtonDC.hDC = 0 Then
        ButtonDC.hDC = CreateCompatibleDC(UserControl.hDC)
        SetBkMode ButtonDC.hDC, 3&
        ' by pulling these objects now, we ensure no memory leaks &
        ' changing the objects as needed can be done in 1 line of code
        ' in the SetButtonColors routine
        ButtonDC.OldBrush = SelectObject(ButtonDC.hDC, CreateSolidBrush(0&))
        ButtonDC.OldPen = SelectObject(ButtonDC.hDC, CreatePen(0&, 1&, 0&))
        GetGDIMetrics "Font"
    End If
    If ButtonDC.OldBitmap = 0 Then
        Dim hBmp As Long
        hBmp = CreateCompatibleBitmap(UserControl.hDC, ScaleWidth, ScaleHeight)
        ButtonDC.OldBitmap = SelectObject(ButtonDC.hDC, hBmp)
    End If
Else
    BitBlt UserControl.hDC, 0, 0, ScaleWidth, ScaleHeight, ButtonDC.hDC, 0, 0, vbSrcCopy
End If
End Sub

Private Sub DrawRect(m_hDC As Long, ByVal X1 As Long, ByVal Y1 As Long, _
                                   ByVal X2 As Long, ByVal Y2 As Long, _
                                   tColor As Long, Optional pColor As Long = -1, _
                                   Optional PenWidth As Long = 0, Optional PenStyle As Long = 0)

' Simple routine to draw a rectangle

If pColor <> -1 Then SetButtonColors True, m_hDC, cObj_Pen, pColor, , PenWidth, , PenStyle
SetButtonColors True, m_hDC, cObj_Brush, tColor, (pColor = -1)
Call Rectangle(m_hDC, X1, Y1, X2, Y2)
End Sub


Private Sub SetButtonColors(bSet As Boolean, m_hDC As Long, TypeObject As ColorObjects, lColor As Long, _
    Optional bSamePenColor As Boolean = True, Optional PenWidth As Long = 1, _
    Optional bSwapPens As Boolean = False, Optional PenStyle As Long = 0)

' This is the basic routine that sets a DC's pen, brush or font color

' here we store the most recent "sets" so we can reset when needed
Dim tBrush As Long, tPen As Long
If bSet Then    ' changing a DC's setting
    Select Case TypeObject
    Case cObj_Brush         ' brush is being changed
        DeleteObject SelectObject(ButtonDC.hDC, CreateSolidBrush(lColor))
        If bSamePenColor Then   ' if the pen color will be the same
            DeleteObject SelectObject(ButtonDC.hDC, CreatePen(PenStyle, PenWidth, lColor))
        End If
    Case cObj_Pen   ' pen is being changed (mostly for drawing lines)
        DeleteObject SelectObject(ButtonDC.hDC, CreatePen(PenStyle, PenWidth, lColor))
    Case cObj_Text  ' text color is changing
        SetTextColor m_hDC, ConvertColor(lColor)
    End Select
Else            ' resetting the DC back to the way it was
    DeleteObject SelectObject(ButtonDC.hDC, ButtonDC.OldBrush)
    DeleteObject SelectObject(ButtonDC.hDC, ButtonDC.OldPen)
End If
End Sub

Private Function ConvertColor(tColor As Long) As Long

' Converts VB color constants to real color values

If tColor < 0 Then
    ConvertColor = GetSysColor(tColor And &HFF&)
Else
    ConvertColor = tColor
End If
End Function

Private Sub CreateButtonRegion()

' this function creates the regions for the specific type of button style

Dim rgnA As Long, rgnB As Long, rgn2Use As Long
Dim lRatio As Single, lEdge As Long, rEdge As Long, Wd As Long
Dim ptTRI(0 To 9) As POINTAPI

myProps.bSegPts.x = 0
myProps.bSegPts.y = ScaleWidth
rgnB = CreateRectRgn(0, 0, 0, 0)

If ButtonDC.ClipRgn Then
    ' this was set for round buttons
    SelectClipRgn ButtonDC.hDC, 0
    DeleteObject ButtonDC.ClipRgn
    ButtonDC.ClipRgn = 0
End If
Select Case myProps.bShape
  Case lv_Round3D, lv_Round3DFixed, lv_RoundFlat
    rgn2Use = CreateEllipticRgn(0, 0, ScaleWidth + 1, ScaleHeight + 1)
    ButtonDC.ClipRgn = CreateEllipticRgn(2 - Abs(myProps.bShape < lv_RoundFlat), 2 - Abs(myProps.bShape < lv_RoundFlat), ScaleWidth - 1 + Abs(myProps.bShape < lv_RoundFlat), ScaleHeight - 1 + Abs(myProps.bShape < lv_RoundFlat))
  Case lv_Rectangular
    rgn2Use = CreateRectRgn(0, 0, ScaleWidth + 1, ScaleHeight + 1)
    Select Case myProps.bBackStyle
        Case 1 'Windows 16-bit
            GoSub LopOffCorners1
            GoSub LopOffCorners2
        Case 2, 7
            GoSub LopOffCorners3
            GoSub LopOffCorners4
        Case 3    'Java
            If UserControl.Enabled Then
                GoSub LopOffCorners1
                GoSub LopOffCorners2
            End If
    End Select
  
  Case Else
    ' here is my trick for ensuring a sharp edge on diagonal buttons.
    ' Basically a bastardized carpenters formula for right angles
    ' (i.e., 3+4=5 < the hypoteneus). Here I want a 60 degree angle,
    ' and not a 45 degree angle. The difference is sharp or choppy.
    ' Based off of the button height, I need to figure how much of
    ' the opposite end I need to cutoff for the diagonal edge
    lRatio = (ScaleHeight + 1) / 4
    Wd = ScaleWidth
    lEdge = (4 * lRatio)
    ' here we ensure a width of at least 5 pixels wide
    Do While Wd - lEdge < 5
        Wd = Wd + 5
    Loop
    If Wd <> ScaleWidth Then
        ' resize the control if necessary
        DelayDrawing True
        UserControl.Width = ScaleX(Wd, vbPixels, Parent.ScaleMode)
        myProps.bSegPts.y = ScaleWidth
        bNoRefresh = False
    End If
    rEdge = ScaleWidth - lEdge
    ' initial dimensions of our rectangle
    ptTRI(0).x = 0: ptTRI(0).y = 0
    ptTRI(1).x = 0
    ptTRI(1).y = ScaleHeight + 1
    ptTRI(2).x = ScaleWidth + 1
    ptTRI(2).y = ScaleHeight + 1
    ptTRI(3).x = ScaleWidth + 1
    ptTRI(3).y = 0
    ' now modify the left/right side as needed

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本亚洲欧美天堂免费| 欧美日韩精品一区二区三区蜜桃| 亚洲视频一区二区免费在线观看| 成人精品免费看| 国产精品无码永久免费888| 欧美色中文字幕| 国产99久久久国产精品免费看| 亚洲国产视频一区| 国产亚洲欧美一级| 欧美日韩国产一级| 成人久久18免费网站麻豆 | 中文字幕视频一区二区三区久| 欧美日韩免费一区二区三区视频| 成人精品国产福利| 精品无人码麻豆乱码1区2区 | 亚洲妇熟xx妇色黄| 国产精品久久看| 久久综合九色综合97婷婷女人 | 综合激情成人伊人| 精品国产乱码久久| 欧美人狂配大交3d怪物一区| 成人h动漫精品一区二| 国产在线国偷精品产拍免费yy| 午夜精品视频一区| 亚洲猫色日本管| 成人免费在线视频观看| 国产女人18毛片水真多成人如厕 | 欧美亚洲综合久久| 99riav久久精品riav| 大陆成人av片| 风间由美一区二区三区在线观看| 久久机这里只有精品| 日本午夜精品视频在线观看| 午夜久久久久久| 亚洲成精国产精品女| 亚洲一区二区在线免费看| 亚洲欧美日韩一区二区三区在线观看| 国产欧美日韩三区| 久久精品亚洲一区二区三区浴池| 久久人人97超碰com| 日韩欧美中文一区| 欧美一区二区在线不卡| 欧美一区二区视频在线观看2020 | 亚洲成人av免费| 亚洲成人一区二区| 午夜激情一区二区| 日韩电影在线免费看| 日日摸夜夜添夜夜添国产精品| 天堂成人国产精品一区| 免费久久精品视频| 国产综合色视频| 国产美女精品在线| 成人免费视频视频在线观看免费| 成人福利视频在线| 色综合天天在线| 精品视频123区在线观看| 538在线一区二区精品国产| 欧美成人一区二区三区片免费 | 亚洲你懂的在线视频| 一区二区三区在线播| 亚洲国产乱码最新视频 | 国产精品美女久久久久久| 最新中文字幕一区二区三区| 亚洲欧美日本在线| 亚洲电影视频在线| 狂野欧美性猛交blacked| 激情文学综合丁香| yourporn久久国产精品| 色欧美88888久久久久久影院| 欧美日韩国产综合一区二区三区 | 最新国产の精品合集bt伙计| 一区二区在线观看视频| 美女mm1313爽爽久久久蜜臀| 国产成人综合网| 一本色道**综合亚洲精品蜜桃冫| 欧美色手机在线观看| 久久综合久久综合久久| 亚洲欧美欧美一区二区三区| 蜜桃视频一区二区三区在线观看| 国产v综合v亚洲欧| 欧美午夜精品一区| 国产日产欧美一区二区三区| 亚洲午夜一区二区三区| 国产精品一级黄| 欧美日韩一区二区在线观看视频| 精品国产a毛片| 亚洲激情综合网| 国产在线精品一区二区不卡了| 99久久99久久综合| 日韩欧美综合在线| 樱桃视频在线观看一区| 韩国三级电影一区二区| 欧美在线观看一区| 国产精品污www在线观看| 午夜精品福利一区二区三区av| 国产99精品国产| 日韩欧美一级二级| 伊人性伊人情综合网| 国产曰批免费观看久久久| 欧美专区亚洲专区| 国产精品久久久久久久久免费桃花| 婷婷综合久久一区二区三区| 成人av免费在线观看| 欧美一区二区成人| 一区二区三区免费看视频| 顶级嫩模精品视频在线看| 91精品国模一区二区三区| 亚洲视频图片小说| 国产成人在线免费观看| 欧美一区二区福利视频| 亚洲高清不卡在线| 色偷偷成人一区二区三区91 | 国产日韩精品久久久| 蜜臀久久99精品久久久久宅男 | 国内不卡的二区三区中文字幕| 欧美色视频一区| 亚洲欧美日韩系列| 北条麻妃一区二区三区| 久久久影院官网| 国产一区二区三区不卡在线观看| 欧美高清一级片在线| 亚州成人在线电影| 欧美性三三影院| 一区二区三区在线观看欧美| 91网站最新地址| 亚洲欧美另类小说| 99v久久综合狠狠综合久久| 国产精品美女www爽爽爽| 高清不卡一区二区在线| 久久精品视频网| 国产九色sp调教91| 国产日韩高清在线| 国产成人鲁色资源国产91色综| 久久久777精品电影网影网| 久久9热精品视频| 欧美成人一区二区三区| 韩国av一区二区三区四区| 欧美成人福利视频| 激情五月激情综合网| 久久奇米777| 国产69精品久久久久毛片| 欧美国产日产图区| 91在线观看下载| 亚洲精品国产一区二区精华液| 91在线观看美女| 亚洲综合在线免费观看| 欧美日韩一区国产| 美日韩一级片在线观看| 久久久综合九色合综国产精品| 国产成人午夜精品5599| 国产精品的网站| 91传媒视频在线播放| 日韩电影在线观看电影| 精品成人a区在线观看| 成人美女视频在线观看18| 亚洲乱码一区二区三区在线观看| 色婷婷精品久久二区二区蜜臂av | 依依成人综合视频| 欧美日韩国产精选| 久久国产夜色精品鲁鲁99| 国产午夜精品一区二区| 91网站在线播放| 午夜电影久久久| 久久综合狠狠综合| 99热99精品| 天堂va蜜桃一区二区三区漫画版| 精品国产成人系列| www.欧美.com| 午夜精品久久久久久久久久 | 午夜精品一区二区三区三上悠亚| 日韩一区二区精品葵司在线| 粉嫩av一区二区三区| 亚洲国产裸拍裸体视频在线观看乱了| 在线成人午夜影院| 国产精品综合二区| 亚洲一区二区欧美日韩| 精品成人佐山爱一区二区| 97久久精品人人做人人爽| 日韩激情一二三区| 日本一区二区视频在线| 欧美日韩精品欧美日韩精品| 国产毛片精品视频| 亚洲午夜电影在线观看| 国产欧美日韩另类一区| 欧美三级三级三级爽爽爽| 国产成人av电影在线| 午夜电影一区二区三区| 国产精品久久久久久久久图文区 | 99精品欧美一区二区三区小说| 日本中文一区二区三区| 欧美国产97人人爽人人喊| 欧美日韩精品是欧美日韩精品| 丰满亚洲少妇av| 日本不卡的三区四区五区| 亚洲男人天堂一区| 精品国产免费久久| 在线不卡一区二区| 成人动漫在线一区| 精品一区二区三区蜜桃| 性欧美疯狂xxxxbbbb|