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

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

?? modmenusxp.bas

?? 很好一套庫存管理
?? BAS
?? 第 1 頁 / 共 5 頁
字號:
        If imgIndex < 1 Or imgIndex > MenuData(hWndRedirect).TotalIcons Then
            imgIndex = 0
        Else    ' optional transparency flag
                ' Y=always use transparency
                ' N=never user transparency
                ' default: Icons never use transparency, Bitmaps always
            If InStr(sHeader, "|Y}") Then imgTransparency = 1
            If InStr(sHeader, "|N}") Then imgTransparency = 2
        End If
    End If
End If
' Parse the Caption & the Control Key
sAccel = ""
' First let's see if it's a menu builder supplied control key
' if so, it's easy to identify 'cause it is preceeded by a vbTab
i = InStr(sKey, Chr$(9))
If i Then       ' yep, menu builder supplied control key
    sAccel = Trim$(Mid$(sKey, i + 1))
    sKey = Trim$(Left$(sKey, i - 1))
Else
    ' user supplied control key, a little more difficult to find
    For i = 1 To 3  ' look for Ctrl, Alt & Shift combinations 1st
        If InStr(UCase(sKey), Choose(i, "CTRL+", "SHIFT+", "ALT+")) Then
            ' if found, then exit routine
            sAccel = Trim$(Mid$(sKey, InStr(UCase(sKey), Choose(i, "CTRL+", "SHIFT+", "ALT+"))))
            sKey = Trim$(Left$(sKey, InStr(UCase(sKey), Choose(i, "CTRL+", "SHIFT+", "ALT+")) - 1))
            Exit Sub
        End If
    Next
    For i = 1 To 15 ' look for F keys next
        If Right$(UCase(sKey), Len("F" & i)) = "F" & i Then
            ' if found, then exit routine
            sAccel = Trim$(Mid$(sKey, InStrRev(UCase(sKey), "F" & i)))
            sKey = Trim$(Left$(sKey, InStrRev(UCase(sKey), UCase(sAccel)) - 1))
            Exit Sub
        End If
    Next
    ' here we look for other types of hot keys, these can be customized
    ' as needed by following the logic below
    For i = 1 To 6
        ' hot key looking for, it will be preceded by a space and must
        ' be at end of caption, otherwise we ignore it
        sSpecial = Choose(i, " DEL", " INS", " HOME", " END", " PGUP", " PGDN")
        If Right$(UCase(sKey), Len(sSpecial)) = sSpecial Then
            sAccel = Trim$(Mid$(sKey, InStrRev(UCase(sKey), sSpecial)))
            sKey = Trim$(Left$(sKey, InStrRev(UCase(sKey), sSpecial) - 1))
            Exit For
        End If
    Next
End If
End Sub

Private Sub ReturnSideBarInfo(hWndRedirect As String, sBarInfo As String, vBarInfo() As Long, tDC As Long)
' =======================================================================
' This routine returns the sidebar information for the current submenu
' Basically we are parsing out the SIDEBAR caption
' =======================================================================

Dim i As Integer, sImgID As String
Dim lRatio As Single, sText As String
Dim bMetrics As Boolean, sTmp As String
Dim lFont As Long, lFontM As LOGFONT, hPrevFont As Long
Dim tRect As RECT
Dim imgInfo As BITMAP, picInfo As ICONINFO
Dim TempBMP As Long, ImageDC As Long, sbarType As Integer

' here we are just adding a delimeter at end of string to make parsing easier
If Right$(sBarInfo, 1) = "}" Then sBarInfo = Left$(sBarInfo, Len(sBarInfo) - 1)
sBarInfo = sBarInfo & "|"
' stripoff the SIDEBAR header
i = InStr(UCase(sBarInfo), "{SIDEBAR:")
sBarInfo = Mid$(sBarInfo, InStr(sBarInfo, ":") + 1)
' return the type of sidebar Image or Text
i = InStr(sBarInfo, "|")
' if the next line <> TEXT then we have an image handle or image control
sImgID = Left$(sBarInfo, i - 1)

On Error Resume Next
' can't leave memory fonts running around loose -- wasted memory
If MenuData(hWndRedirect).SideBarIsText = True And MenuData(hWndRedirect).SideBarItem <> 0 Then
    ' kill the previous font for this item, if any
    DeleteObject MenuData(hWndRedirect).SideBarItem
End If
vBarInfo(10) = 0                  ' reset to force no sidebar
' use with caution. Making width too small or too large
' may prevent menu from displaying or crash on memory
' suggest using between 32 & 64
If InStr(UCase(sBarInfo), "|WIDTH:") Then      ' width of the sidebar (user-provided)
    ' undocumented! this allows the sidebar width to be modified
    vBarInfo(4) = VAL(Mid$(sBarInfo, InStr(UCase(sBarInfo), "|WIDTH:") + 7))
Else
    ' however, 32 pixels wide seems to look the best
    vBarInfo(4) = 32                            ' default width of sidebars
End If
If IsNumeric(sImgID) Then         ' user is providing image handle vs a form picture object
    vBarInfo(10) = VAL(sImgID)    ' ref to picture if it exists
    sbarType = 2                  ' status: image sidebar
    vBarInfo(9) = 8               ' type default as bmp
Else
    If sImgID = "TEXT" Then
        sbarType = 4              ' status: text sidebar
        vBarInfo(9) = 0
        If InStr(UCase(sBarInfo), "|CAPTION:") Then
            sText = Mid$(sBarInfo, InStr(UCase(sBarInfo), "|CAPTION:") + 9)
            i = InStr(sText, "|")
            sText = Left$(sText, i - 1)
        End If
        sBarInfo = UCase(sBarInfo)  ' make it easier to parse
        If InStr(sBarInfo, "|FONT:") Then
            ' parse out the font
            sTmp = Mid$(sBarInfo, InStr(sBarInfo, "|FONT:") + 6)
            i = InStr(sTmp, "|")
            sTmp = Left$(sTmp, i - 1)
        Else
            sTmp = "Arial"     ' default if not provided
        End If
        lFontM.lfCharSet = 0   ' scalable only
        lFontM.lfFaceName = sTmp
        ' if user wants other font attributes, then make it so
        If InStr(sBarInfo, "|BOLD") Then sTmp = sTmp & " Bold"
        If InStr(sBarInfo, "|ITALIC") Then sTmp = sTmp & " Italic"
        lFontM.lfFaceName = sTmp & Chr$(0)
        If InStr(sBarInfo, "|UNDERLINE") Then lFontM.lfUnderline = 1
        ' if user wants a different fontsize then make it so
        If InStr(sBarInfo, "|FSIZE:") Then
            i = VAL(Mid$(sBarInfo, InStr(sBarInfo, "|FSIZE:") + 7))
            If i < 4 Then i = 12        ' min & max fonts
            If i > 24 Then i = 24
        Else
            i = 12  ' default font size
        End If
        Do
            ' here we are going to create fonts to see if it will
            ' fit in the sidebar, unfortunately we need to do this
            ' each time the menubar is initially displayed or resized because
            ' the sidebar height may have changed with adding/removing
            ' or making menu items invisible
            lFontM.lfHeight = (i * -20) / Screen.TwipsPerPixelY
            ' can't rotate the font before measuring it - per MSDN drawtext won't measure rotated fonts
            lFont = CreateFontIndirect(lFontM)    ' create the font without rotation
            hPrevFont = SelectObject(tDC, lFont)  ' load it into the DC
            ' see if it will fit in the sidebar
            DrawText tDC, sText, Len(sText), tRect, DT_CALCRECT Or DT_LEFT Or DT_SINGLELINE Or DT_NOCLIP Or &H800
            ' regardless we delete the font, cause we'll need to rotate it
            SelectObject tDC, hPrevFont
            DeleteObject lFont
            If tRect.Right > vBarInfo(1) Or tRect.Bottom > vBarInfo(4) Then
                ' font is too big, reduce it by 1 and try again
                i = i - 1
                If i < 4 Then Exit Do
            Else    ' font is ok, now we rotate it & save it
                lFontM.lfEscapement = 900
                lFont = CreateFontIndirect(lFontM)  ' create the font
                vBarInfo(10) = lFont                 ' save it
                vBarInfo(8) = tRect.Right           ' measurements
                vBarInfo(5) = tRect.Bottom
                Exit Do
            End If
        Loop
    Else
        ' here we have an image/picturebox control containing an image
        ' we need to extract the image handle
        Dim formID As Long, vControl As Control, bIsMDI As Boolean
        ' loop thru each open form to determine which is the active
        formID = GetFormHandle(CLng(hWndRedirect), bIsMDI)
        If formID > -1 Then
            sbarType = 2     'status: image sidebar
            ' let's see if the control passed is indexed
            If Right$(sImgID, 1) = ")" Then  ' indexed image
                i = InStrRev(sImgID, "(")
                sTmp = Left$(sImgID, i - 1)
                i = VAL(Mid$(sImgID, i + 1))
                If bIsMDI Then
                    If Forms(formID).ActiveForm Is Nothing Then
                        Set vControl = Forms(formID).Controls(sTmp).Item(i)
                    Else
                        ' when control is in an MDIs active form, we reference it this way
                        Set vControl = Forms(formID).ActiveForm.Controls(sTmp).Item(i)
                    End If
                Else
                    Set vControl = Forms(formID).Controls(sTmp).Item(i)
                End If
            Else
                If bIsMDI Then
                    If Forms(formID).ActiveForm Is Nothing Then
                        Set vControl = Forms(formID).Controls(sImgID)
                    Else
                        ' when control is in an MDIs active form, we reference it this way
                        Set vControl = Forms(formID).ActiveForm.Controls(sImgID)
                    End If
                Else
                    Set vControl = Forms(formID).Controls(sImgID)
                End If
            End If
            ' cache the picture handle & type
            vBarInfo(10) = vControl.Picture.Handle
            If vControl.Picture.Type = 3 Then vBarInfo(9) = 16 Else vBarInfo(9) = 8
            Set vControl = Nothing
        End If
    End If
End If
If vBarInfo(10) = 0 Then
    'failed retrieving sidebar information
    Debug.Print "Sidebar failed"
    vBarInfo(4) = 0
    Exit Sub
End If
sBarInfo = UCase(sBarInfo)  ' make it easier to parse
'ok, let's get the rest of the attributes
If InStr(sBarInfo, "|BCOLOR:") Then
    ' Background color for the sidebar
    Select Case Left$(Mid$(sBarInfo, InStr(sBarInfo, "|BCOLOR:") + 8), 4)
    Case "NONE": vBarInfo(6) = -1
    Case "BACK":    ' short for background
        ' if a text sidebar & background was provided we change to default
        If sbarType = 2 Then vBarInfo(6) = -2 Else vBarInfo(6) = -1
    Case Else   ' numeric background color -- use it
        vBarInfo(6) = VAL(Mid$(sBarInfo, InStr(sBarInfo, "|BCOLOR:") + 8))
    End Select
Else
    vBarInfo(6) = -1    ' default: use the menubar background color
End If
If vBarInfo(6) = -1 Then vBarInfo(6) = GetSysColor(COLOR_MENU)
If vBarInfo(10) Then
    If sbarType = 2 Then
        ' now if an image sidebar, we call subroutine for more attributes
        GoSub DrawPicture
        ' let's get the size of the image vs the size of the menu panel &
        ' either center or shrink the image to fit
        ' we will return the left offset, top offset & new image width, height
        If vBarInfo(5) > vBarInfo(4) Or vBarInfo(8) > vBarInfo(1) Then      ' image is larger than menu panel
            If vBarInfo(5) / vBarInfo(4) > vBarInfo(8) / vBarInfo(1) Then
                lRatio = vBarInfo(4) / vBarInfo(5)
            Else
                lRatio = vBarInfo(1) / vBarInfo(8)
            End If
            vBarInfo(5) = CInt(vBarInfo(5) * lRatio)
            vBarInfo(8) = CInt(vBarInfo(8) * lRatio)
        End If
        vBarInfo(7) = MakeLong(CInt(vBarInfo(5)), CInt(vBarInfo(8)))
        ' save the left & top offsets for the image, this way we don't have
        ' to remeasure when the menu is being displayed.
        vBarInfo(5) = MakeLong((vBarInfo(4) - vBarInfo(5)) \ 2, (vBarInfo(1) - vBarInfo(8)) \ 2)
    Else
        ' if user want's gradient background for text sidebar then
        If InStr(sBarInfo, "|GRADIENT") > 0 And sbarType = 4 Then vBarInfo(9) = vBarInfo(9) Or 32
        ' text sidebar, let's get the forecolor of the text & black is default
        If InStr(sBarInfo, "|FCOLOR:") Then
            vBarInfo(7) = VAL(Mid$(sBarInfo, InStr(sBarInfo, "|FCOLOR:") + 8))
            If vBarInfo(7) < 0 Then vBarInfo(7) = 0
        Else
            vBarInfo(7) = 0
        End If
        vBarInfo(5) = MakeLong(CInt(vBarInfo(5)), CInt(vBarInfo(8)))
    End If
End If
vBarInfo(9) = sbarType Or vBarInfo(9)
vBarInfo(0) = vBarInfo(0) + vBarInfo(4)
'Debug.Print "font?"; (vBarInfo(9) And 4) = 4; vBarInfo(10)
sBarInfo = sText
Exit Sub

DrawPicture:
' this routine is used when....
' 1. When we need the background color for a mask
' 2. Image passed is a control to get height/width values

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一本久久a久久免费精品不卡| 另类的小说在线视频另类成人小视频在线 | 亚洲国产精品精华液网站| 国产日韩精品一区二区三区在线| 日韩无一区二区| 日韩一区二区三区电影| 欧美日韩国产小视频| 91久久精品一区二区三| 色88888久久久久久影院按摩| 一本色道综合亚洲| 91福利社在线观看| 精品1区2区3区| 91精品国产91久久综合桃花| 日韩视频国产视频| 日韩精品中午字幕| 久久久不卡网国产精品二区| 日本一区二区在线不卡| 亚洲天堂av一区| 亚洲va欧美va人人爽午夜| 日韩精品五月天| 久久99精品久久久久久动态图| 色一情一乱一乱一91av| 色88888久久久久久影院按摩| 欧美视频精品在线| 日韩美一区二区三区| 欧美国产视频在线| 亚洲三级在线观看| 午夜电影久久久| 国产精品中文字幕日韩精品| 成人av网址在线观看| 欧美日韩黄视频| 欧美精品一区二区高清在线观看 | 日韩av一级片| 国产剧情一区二区| 日本韩国欧美在线| 6080午夜不卡| 久久精品视频在线免费观看| 亚洲精品乱码久久久久久日本蜜臀| 性做久久久久久久免费看| 久久99精品久久久久久动态图 | 亚洲天堂免费看| 五月天视频一区| 国产精品66部| 欧美日韩国产精品自在自线| xnxx国产精品| 亚洲一二三区在线观看| 国产精一区二区三区| 欧美三级电影网| 国产日韩欧美一区二区三区综合| 亚洲影院久久精品| 91精品一区二区三区久久久久久 | 国产成人自拍高清视频在线免费播放| 色哟哟在线观看一区二区三区| 69堂国产成人免费视频| 亚洲人成人一区二区在线观看| 日本 国产 欧美色综合| 色综合天天综合| 国产色综合一区| 免费成人深夜小野草| 一本大道久久a久久综合婷婷| 精品国产第一区二区三区观看体验| 亚洲精品欧美激情| 成人午夜又粗又硬又大| 久久综合狠狠综合| 狂野欧美性猛交blacked| 欧美日韩一区二区三区不卡| 亚洲人成网站色在线观看| 成人永久aaa| 久久婷婷国产综合精品青草| 蜜臂av日日欢夜夜爽一区| 欧美久久久久免费| 亚洲午夜激情网页| 欧美性感一区二区三区| 亚洲欧美日韩在线| 91丨porny丨国产| 中文字幕在线播放不卡一区| 丰满放荡岳乱妇91ww| 久久久久一区二区三区四区| 韩国三级电影一区二区| 91精品免费在线| 美女视频黄a大片欧美| 91精品国产乱| 蜜乳av一区二区三区| 欧美精品一区二区三区四区| 久久狠狠亚洲综合| 2024国产精品| 国产不卡一区视频| 亚洲欧美日韩在线播放| 欧美性猛交xxxx乱大交退制版| 一区二区三区欧美| 欧美三级日本三级少妇99| 五月综合激情日本mⅴ| 91精品国产全国免费观看| 久久99国产精品久久99 | 老汉av免费一区二区三区 | 国产一区二区伦理片| 国产亚洲精品超碰| 成人av在线一区二区三区| 中文字幕一区二区三区在线观看| 色综合中文字幕| 天天综合网 天天综合色| 日韩三级视频中文字幕| 国产成人小视频| 亚洲欧美成aⅴ人在线观看| 欧美日韩在线播放一区| 精品一区在线看| 国产精品福利一区二区三区| 在线视频欧美精品| 久久国产精品一区二区| 国产精品丝袜一区| 精品视频全国免费看| 欧美无乱码久久久免费午夜一区| 日本va欧美va精品| 国产精品国产三级国产a| 欧美午夜理伦三级在线观看| 国内精品在线播放| 亚洲激情欧美激情| 26uuu欧美| 欧美亚洲免费在线一区| 国产精品香蕉一区二区三区| 亚洲精品第一国产综合野| 日韩午夜电影在线观看| 91麻豆高清视频| 国产乱人伦偷精品视频免下载 | 一本到高清视频免费精品| 日本亚洲电影天堂| 亚洲男人天堂av| 国产亚洲欧美一区在线观看| 欧美日韩一区二区三区在线看| 岛国精品在线观看| 日韩成人免费在线| 亚洲黄网站在线观看| 国产无遮挡一区二区三区毛片日本| 欧美视频在线一区二区三区| 春色校园综合激情亚洲| 蜜臀a∨国产成人精品| 亚洲一区二区三区四区在线| 国产精品美日韩| 久久一区二区三区四区| 日韩一区和二区| 7777精品伊人久久久大香线蕉经典版下载 | 欧美在线高清视频| av电影一区二区| 国产乱码精品一区二区三区忘忧草| 亚洲第一会所有码转帖| 一区二区三区资源| 欧美激情在线一区二区| 欧美精品一区二区三区一线天视频| 欧美日韩不卡在线| 欧美午夜片在线观看| 色婷婷久久久久swag精品| 成人动漫一区二区在线| 国产经典欧美精品| 粉嫩一区二区三区在线看 | 久久精品欧美一区二区三区不卡| 欧美丰满一区二区免费视频| 欧美色图在线观看| 欧美午夜在线观看| 欧美午夜影院一区| 欧美日韩国产天堂| 欧美日韩精品一区二区天天拍小说| 色哟哟在线观看一区二区三区| 99视频一区二区| 色综合久久88色综合天天免费| 91污片在线观看| 色视频一区二区| 欧美无乱码久久久免费午夜一区| 欧美丝袜丝交足nylons图片| 欧美探花视频资源| 69堂精品视频| 久久一二三国产| 国产精品人人做人人爽人人添| 国产精品久久二区二区| 一区二区三区四区不卡在线 | 国产精品视频麻豆| 国产精品国产三级国产普通话蜜臀 | 国产精品免费免费| 亚洲欧洲制服丝袜| 亚洲成人动漫精品| 精品一区二区三区免费视频| 国产69精品一区二区亚洲孕妇| 成人app软件下载大全免费| 色88888久久久久久影院野外| 在线播放国产精品二区一二区四区| 日韩一区二区免费在线观看| 久久日韩精品一区二区五区| 中文字幕精品一区二区精品绿巨人| 亚洲免费在线视频| 久久99精品久久久久久国产越南 | 亚洲男人的天堂在线观看| 亚洲成av人**亚洲成av**| 久久99国产精品久久99| 91丝袜美腿高跟国产极品老师 | 日韩欧美高清一区| 国产精品美女久久久久久2018| 亚洲香蕉伊在人在线观| 国产一区视频网站| 欧美日韩三级一区二区| 中文字幕欧美日韩一区| 性做久久久久久久久|