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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? modparsers.bas

?? mp3播放器軟件
?? BAS
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
Attribute VB_Name = "modParsers"
'****************************************************************************
'人人為我,我為人人
'枕善居漢化收藏整理
'發(fā)布日期:2007/05/08
'描    述:另類(lèi)自定義listview控件源碼(支持真彩色圖標(biāo))
'網(wǎng)    站:http://www.Mndsoft.com/  (VB6源碼博客)
'網(wǎng)    站:http://www.VbDnet.com/   (VB.NET源碼博客,主要基于.NET2005)
'e-mail  :Mndsoft@163.com
'e-mail  :Mndsoft@126.com
'OICQ    :88382850
'          如果您有新的好的代碼別忘記給枕善居哦!
'****************************************************************************
'
'感謝您使用本站源碼,如果方便的話(huà)請(qǐng)給于本站一點(diǎn)支持,謝謝。
'
'本站物品:
'700MB容量的VB.NET源碼光盤(pán)(38元包快遞)
'支持支付寶交易:http://auction1.taobao.com/auction/0/item_detail-0db1-a8aba972995270433643e99d2e4ac592.jhtml
'也可以銀行匯款:http://www.mndsoft.com/sale/yh.png
'
'USB電腦遙控器 源碼光盤(pán)
'支持支付寶交易:http://auction1.taobao.com/auction/0/item_detail-0db1-dd4a9c3f6a5785231091b01d54af01fd.jhtml
'也可以銀行匯款:http://www.mndsoft.com/sale/yh.png
'
'如果您給于本站一點(diǎn)支持,本站將更好的利用自身優(yōu)勢(shì)為您尋找您需要的代碼!
Option Explicit

' No APIs are declared public. This is to prevent possibly, differently
' declared APIs or different versions, of the same API, from conflciting
' with any APIs you declared in your project. Same rule for UDTs.

Private Type SafeArrayBound
    cElements As Long
    lLbound As Long
End Type
Private Type SafeArray        ' used as DMA overlay on a DIB
    cDims As Integer
    fFeatures As Integer
    cbElements As Long
    cLocks As Long
    pvData As Long
    rgSABound(0 To 1) As SafeArrayBound
End Type
Private Type PictDesc
    Size As Long
    Type As Long
    hHandle As Long
    hPal As Long
End Type
Private Type RECT
    Left As Long
    Top As Long
    Right As Long
    Bottom As Long
End Type

Private Declare Function VarPtrArray Lib "msvbvm60.dll" Alias "VarPtr" (ByRef Ptr() As Any) As Long
Private Declare Sub CopyMemory Lib "kernel32.dll" Alias "RtlMoveMemory" (ByRef Destination As Any, ByRef Source As Any, ByVal Length As Long)

' used to create a stdPicture from a byte array
Private Declare Function CreateStreamOnHGlobal Lib "ole32" (ByVal hGlobal As Long, ByVal fDeleteOnRelease As Long, ppstm As Any) As Long
Private Declare Function GlobalAlloc Lib "kernel32" (ByVal uFlags As Long, ByVal dwBytes As Long) As Long
Private Declare Function GlobalLock Lib "kernel32" (ByVal hMem As Long) As Long
Private Declare Function GlobalUnlock Lib "kernel32" (ByVal hMem As Long) As Long
Private Declare Function GlobalSize Lib "kernel32" (ByVal hMem As Long) As Long
Private Declare Function OleLoadPicture Lib "olepro32" (pStream As Any, ByVal lSize As Long, ByVal fRunmode As Long, riid As Any, ppvObj As Any) As Long
Private Declare Function OleCreatePictureIndirect Lib "olepro32.dll" (lpPictDesc As PictDesc, riid As Any, ByVal fPictureOwnsHandle As Long, iPic As IPicture) As Long

' used to see if DLL exported function exists
Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long
Private Declare Function GetProcAddress Lib "kernel32" (ByVal hModule As Long, ByVal lpProcName As String) As Long

' GDI32 APIs
Private Declare Function CombineRgn Lib "gdi32.dll" (ByVal hDestRgn As Long, ByVal hSrcRgn1 As Long, ByVal hSrcRgn2 As Long, ByVal nCombineMode As Long) As Long
Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long
Private Declare Function ExtCreateRegion Lib "gdi32" (lpXform As Any, ByVal nCount As Long, lpRgnData As Any) As Long
Private Declare Function GetRegionData Lib "gdi32.dll" (ByVal hRgn As Long, ByVal dwCount As Long, ByRef lpRgnData As Any) As Long
Private Declare Function GetRgnBox Lib "gdi32.dll" (ByVal hRgn As Long, ByRef lpRect As RECT) As Long
Private Declare Function CreateRectRgn Lib "gdi32.dll" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
' User32 APIs
Private Declare Function SetRect Lib "user32" (lpRect As RECT, ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long



Public Function iparseCreateShapedRegion(cHost As c32bppDIB) As Long

    '*******************************************************
    ' FUNCTION RETURNS A HANDLE TO A REGION IF SUCCESSFUL.
    ' If unsuccessful, function retuns zero.
    ' The fastest region from bitmap routines around, custom
    ' designed by LaVolpe. This version modified to create
    ' regions from alpha masks.
    '*******************************************************
    
    ' Useful should a region want to be created around the alpha image.
    ' Tip. Check c32bppDIB.Alpha property before calling this routine.
    '   -- If Alpha=False: When applying to a Window handle,
    '       then SetWindowRgn hWnd,0&,True uses no extra system resources
    '       vs setting the window region to a rectangular region
    
    ' declare bunch of variables...
    Dim rgnRects() As RECT ' array of rectangles comprising region
    Dim rectCount As Long ' number of rectangles & used to increment above array
    Dim rStart As Long ' pixel that begins a new regional rectangle
    
    Dim X As Long, Y As Long ' loop counters
    Dim lScanWidth As Long ' used to size the DIB bit array
    
    Dim bDib() As Byte  ' the DIB bit array
    Dim tSA As SafeArray ' array overlay
    Dim rtnRegion As Long ' region handle returned by this function
    Dim Width As Long, Height As Long
    
    On Error GoTo CleanUp
      
    ' Simple sanity checks
    Width = cHost.Width
    If Width < 1& Then Exit Function
    Height = cHost.Height
    
    If cHost.Alpha = False Then
        iparseCreateShapedRegion = CreateRectRgn(0&, 0&, Width, Height)
        Exit Function
    End If
    
    lScanWidth = Width * 4& ' how many bytes per bitmap line?
    With tSA                ' prepare array overlay
        .cbElements = 1     ' byte elements
        .cDims = 2          ' two dim array
        .pvData = cHost.BitsPointer  ' data location
        .rgSABound(0).cElements = Height
        .rgSABound(1).cElements = lScanWidth
    End With
    ' overlay now
    CopyMemory ByVal VarPtrArray(bDib()), VarPtr(tSA), 4&
    
     ' start with an arbritray number of rectangles
    ReDim rgnRects(0 To Width * 3&)
    ' reset flag
    rStart = -1&
    
    ' begin pixel by pixel comparisons
    For Y = Height - 1 To 0& Step -1&
        ' the alpha byte is every 4th byte
        For X = 3& To lScanWidth - 1& Step 4&
        
            ' test to see if next pixel is 100% transparent
            If bDib(X, Y) = 0 Then
                If rStart > -1& Then ' we're currently tracking a rectangle,
                                    ' so let's close it
                    ' see if array needs to be resized
                   If rectCount + 1& = UBound(rgnRects) Then _
                       ReDim Preserve rgnRects(0 To UBound(rgnRects) + Width * 3&)
                    
                    ' add the rectangle to our array
                    SetRect rgnRects(rectCount + 2&), rStart, Height - Y - 1&, X \ 4, Height - Y
                    rStart = -1& ' reset flag
                    rectCount = rectCount + 1&     ' keep track of nr in use
                End If
            
            Else
                ' not a target color
                If rStart = -1& Then rStart = X \ 4 ' set start point
            
            End If
        Next X
        If rStart > -1& Then
            ' got to end of bitmap without hitting another transparent pixel
            ' but we're tracking so we'll close rectangle now
           
                ' see if array needs to be resized
           If rectCount + 1& = UBound(rgnRects) Then _
               ReDim Preserve rgnRects(0 To UBound(rgnRects) + Width * 3&)
                ' add the rectangle to our array
            SetRect rgnRects(rectCount + 2), rStart, Height - Y - 1, X \ 4, Height - Y
            rStart = -1& ' reset flag
            rectCount = rectCount + 1&     ' keep track of nr in use
        End If
    Next Y

    ' remove the array overlay
    CopyMemory ByVal VarPtrArray(bDib()), 0&, 4&
        
    On Error Resume Next
    ' check for failure & engage backup plan if needed
    If Not rectCount = 0 Then
        ' there were rectangles identified, try to create the region in one step
        rtnRegion = CreatePartialRegion(rgnRects(), 2&, rectCount + 1&, 0&, Width)
        
        ' ok, now to test whether or not we are good to go...
        ' if less than 2000 rectangles, region should have been created & if it didn't
        ' it wasn't due O/S restrictions -- failure
        If rtnRegion = 0& Then
            If rectCount > 2000& Then
                ' Win98 has limitation of approximately 4000 regional rectangles
                ' In cases of failure, we will create the region in steps of
                ' 2000 vs trying to create the region in one step
                rtnRegion = CreateWin98Region(rgnRects, rectCount + 1&, 0&, Width)
            End If
        End If
    End If

CleanUp:
    Erase rgnRects()
    
    If Err Then ' failure; probably low on resources
        If Not rtnRegion = 0& Then DeleteObject rtnRegion
        Err.Clear
    Else
        iparseCreateShapedRegion = rtnRegion
    End If


End Function

Private Function CreatePartialRegion(rgnRects() As RECT, lIndex As Long, uIndex As Long, leftOffset As Long, cx As Long) As Long
    ' Helper function for CreateShapedRegion & CreateWin98Region
    ' Called to create a region in its entirety or stepped (see CreateWin98Region)

    On Error Resume Next
    ' Note: Ideally contiguous rectangles of equal height & width should be combined
    ' into one larger rectangle. However, thru trial & error I found that Windows
    ' does this for us and taking the extra time to do it ourselves
    ' is too cumbersome & slows down the results.
    
    ' the first 32 bytes of a region is the header describing the region.
    ' Well, 32 bytes equates to 2 rectangles (16 bytes each), so I'll
    ' cheat a little & use rectangles to store the header
    With rgnRects(lIndex - 2) ' bytes 0-15
        .Left = 32&                     ' length of region header in bytes
        .Top = 1&                       ' required cannot be anything else
        .Right = uIndex - lIndex + 1&   ' number of rectangles for the region
        .Bottom = .Right * 16&          ' byte size used by the rectangles; can be zero
    End With
    With rgnRects(lIndex - 1&) ' bytes 16-31 bounding rectangle identification
        .Left = leftOffset                  ' left
        .Top = rgnRects(lIndex).Top         ' top
        .Right = leftOffset + cx            ' right
        .Bottom = rgnRects(uIndex).Bottom   ' bottom
    End With
    ' call function to create region from our byte (RECT) array
    CreatePartialRegion = ExtCreateRegion(ByVal 0&, (rgnRects(lIndex - 2&).Right + 2&) * 16&, rgnRects(lIndex - 2&))
    If Err Then Err.Clear

End Function

Private Function CreateWin98Region(rgnRects() As RECT, rectCount As Long, leftOffset As Long, cx As Long) As Long
    ' Fall-back routine when a very large region fails to be created.
    ' Win98 has problems with regional rectangles over 4000
    ' So, we'll try again in case this is the prob with other systems too.
    ' We'll step it at 2000 at a time which is stil very quick

    Dim X As Long, Y As Long ' loop counters
    Dim win98Rgn As Long     ' partial region
    Dim rtnRegion As Long    ' combined region & return value of this function
    Const RGN_OR As Long = 2&
    Const scanSize As Long = 2000&

    ' we start with 2 'cause first 2 RECTs are the header
    For X = 2& To rectCount Step scanSize
    
        If X + scanSize > rectCount Then
            Y = rectCount
        Else
            Y = X + scanSize
        End If
        
        ' attempt to create partial region, scanSize rects at a time
        win98Rgn = CreatePartialRegion(rgnRects(), X, Y, leftOffset, cx)
        
        If win98Rgn = 0& Then    ' failure
            ' cleaup combined region if needed
            If Not rtnRegion = 0& Then DeleteObject rtnRegion
            Exit For ' abort; system won't allow us to create the region
        Else
            If rtnRegion = 0& Then ' first time thru
                rtnRegion = win98Rgn
            Else ' already started
                ' use combineRgn, but only every scanSize times
                CombineRgn rtnRegion, rtnRegion, win98Rgn, RGN_OR
                DeleteObject win98Rgn
            End If
        End If
    Next
    ' done; return result
    CreateWin98Region = rtnRegion
    
End Function

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美乱妇20p| 91精品国产一区二区三区| 亚洲第一综合色| 国产人伦精品一区二区| 欧美日韩日日夜夜| 不卡的看片网站| 国模娜娜一区二区三区| 婷婷丁香激情综合| 一区在线中文字幕| 欧美精品一区二区三区久久久 | 精品久久久久久久久久久久久久久| 成人性生交大片免费看中文| 日本欧美久久久久免费播放网| 日韩美女久久久| 国产视频一区在线播放| 日韩亚洲欧美综合| 欧美视频一区二区三区| 91一区二区在线观看| 日韩欧美一卡二卡| 欧美日韩精品欧美日韩精品一综合| 国产成人av自拍| 激情综合色丁香一区二区| 午夜欧美一区二区三区在线播放| 亚洲女人小视频在线观看| 欧美韩国日本一区| 国产亚洲成aⅴ人片在线观看| 欧美一级久久久| 91精品中文字幕一区二区三区| 在线观看不卡视频| 日本高清视频一区二区| 色综合久久中文字幕综合网| av亚洲精华国产精华| 播五月开心婷婷综合| 成人一区二区在线观看| 国产精品综合一区二区三区| 国产乱人伦偷精品视频不卡| 精品亚洲欧美一区| 久久99深爱久久99精品| 久草精品在线观看| 国产一区二区三区久久久 | 国产精品久久网站| 国产清纯白嫩初高生在线观看91| 国产偷v国产偷v亚洲高清| 国产三级三级三级精品8ⅰ区| 久久天天做天天爱综合色| 久久久综合视频| 久久精品人人做人人爽人人| 久久精品人人做人人爽97| 欧美国产综合一区二区| 综合久久一区二区三区| 亚洲精品国产一区二区精华液| 一区av在线播放| 香港成人在线视频| 久久福利视频一区二区| 国产精品888| 国产精品一二一区| 91亚洲男人天堂| 欧美三级中文字| 欧美一区二区三区四区在线观看 | 欧美日韩视频在线观看一区二区三区| 欧美视频一区二区三区在线观看 | 国产精品系列在线播放| 成人av午夜影院| 在线观看日韩高清av| 欧美剧情电影在线观看完整版免费励志电影| 欧美日韩成人综合天天影院 | 午夜精品久久久久久久| 蜜臀99久久精品久久久久久软件| 国产资源在线一区| 一道本成人在线| 欧美一级片免费看| 国产人久久人人人人爽| 亚洲自拍另类综合| 国模冰冰炮一区二区| 色哟哟亚洲精品| 日韩网站在线看片你懂的| 国产精品免费aⅴ片在线观看| 亚洲一区二区中文在线| 久久国产视频网| 99久久精品久久久久久清纯| 88在线观看91蜜桃国自产| 久久久精品免费网站| 亚洲免费观看在线视频| 乱中年女人伦av一区二区| 97久久精品人人爽人人爽蜜臀| 91精品欧美久久久久久动漫 | 曰韩精品一区二区| 久久精品国产秦先生| 9人人澡人人爽人人精品| 欧美一区二区在线播放| 国产精品日韩成人| 人人狠狠综合久久亚洲| 99国内精品久久| 69堂成人精品免费视频| 综合久久综合久久| 国产综合久久久久影院| 欧美视频中文字幕| 国产精品麻豆一区二区| 精品一区二区三区免费播放| 在线影视一区二区三区| 久久久91精品国产一区二区精品| 亚洲bt欧美bt精品| 99国产精品久久久久久久久久久| 欧美一区二区三区视频| 亚洲在线一区二区三区| 成人av网站在线观看| 精品人在线二区三区| 日韩福利视频网| 色婷婷久久久综合中文字幕| 国产目拍亚洲精品99久久精品| 免费日本视频一区| 欧美日韩精品一区二区三区| 亚洲精品五月天| 成人黄色av电影| 欧美激情中文字幕一区二区| 免费av网站大全久久| 欧美日韩国产成人在线91| 一区二区国产视频| 99久久久精品| 国产精品免费观看视频| 国产成人免费视频网站高清观看视频 | 日韩av一区二区在线影视| 日本韩国一区二区三区| 亚洲视频香蕉人妖| 成人黄色小视频| 中文字幕欧美三区| 成人深夜在线观看| 久久精品人人做人人综合| 国产一区二三区好的| 精品福利在线导航| 精品一区二区综合| 精品欧美久久久| 狠狠狠色丁香婷婷综合久久五月| 在线成人午夜影院| 三级欧美在线一区| 欧美高清hd18日本| 日韩电影在线免费看| 91精品国产综合久久香蕉的特点 | 成人免费视频播放| 中文字幕av在线一区二区三区| 成人一区在线看| 专区另类欧美日韩| 99精品欧美一区二区蜜桃免费| 亚洲精品中文字幕乱码三区| 亚洲色欲色欲www在线观看| 成人午夜免费电影| 国产精品久久久久久亚洲毛片| 97国产一区二区| 亚洲成人动漫在线免费观看| 欧美午夜精品一区二区蜜桃| 婷婷国产在线综合| 精品国产精品一区二区夜夜嗨| 国产一区二区三区四区五区入口 | 欧美视频在线一区| 日产精品久久久久久久性色 | 亚洲一区成人在线| 欧美日本在线看| 激情综合网天天干| 欧美国产精品久久| 日本乱人伦一区| 日韩电影一区二区三区| 久久免费电影网| 99精品一区二区三区| 舔着乳尖日韩一区| 欧美精品一区二区高清在线观看| 成人丝袜视频网| 日韩专区欧美专区| 久久久久久一级片| 在线观看网站黄不卡| 日韩黄色免费电影| 国产丝袜在线精品| 欧美综合色免费| 久久99精品一区二区三区三区| 亚洲国产精品传媒在线观看| 欧美亚洲动漫精品| 国产呦萝稀缺另类资源| 亚洲乱码中文字幕| 欧美电影免费观看完整版| kk眼镜猥琐国模调教系列一区二区 | 国产麻豆一精品一av一免费| 亚洲欧美日韩综合aⅴ视频| 日韩一区二区在线观看视频播放| 成人午夜电影小说| 青青草97国产精品免费观看 | 欧美三级中文字幕在线观看| 韩国一区二区三区| 亚洲另类春色校园小说| 精品va天堂亚洲国产| 在线亚洲高清视频| 极品尤物av久久免费看| 亚洲国产一区视频| 亚洲国产精品激情在线观看| 欧美顶级少妇做爰| 99免费精品在线| 精品一区二区三区在线播放| 亚洲一二三四在线观看| 国内精品免费在线观看| 亚洲福利一二三区| 国产精品伦一区二区三级视频| 91精品国产综合久久精品麻豆|