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

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

?? modparsers.bas

?? 這是網站里可以播放不同音樂的程序
?? BAS
?? 第 1 頁 / 共 2 頁
字號:
Attribute VB_Name = "modParsers"
'****************************************************************************
'人人為我,我為人人
'枕善居漢化收藏整理
'發布日期:2007/05/08
'描    述:另類自定義listview控件源碼(支持真彩色圖標)
'網    站:http://www.Mndsoft.com/  (VB6源碼博客)
'網    站:http://www.VbDnet.com/   (VB.NET源碼博客,主要基于.NET2005)
'e-mail  :Mndsoft@163.com
'e-mail  :Mndsoft@126.com
'OICQ    :88382850
'          如果您有新的好的代碼別忘記給枕善居哦!
'****************************************************************************
'
'感謝您使用本站源碼,如果方便的話請給于本站一點支持,謝謝。
'
'本站物品:
'700MB容量的VB.NET源碼光盤(38元包快遞)
'支持支付寶交易:http://auction1.taobao.com/auction/0/item_detail-0db1-a8aba972995270433643e99d2e4ac592.jhtml
'也可以銀行匯款:http://www.mndsoft.com/sale/yh.png
'
'USB電腦遙控器 源碼光盤
'支持支付寶交易:http://auction1.taobao.com/auction/0/item_detail-0db1-dd4a9c3f6a5785231091b01d54af01fd.jhtml
'也可以銀行匯款:http://www.mndsoft.com/sale/yh.png
'
'如果您給于本站一點支持,本站將更好的利用自身優勢為您尋找您需要的代碼!
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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91视频国产观看| 亚洲自拍欧美精品| 777精品伊人久久久久大香线蕉| 99免费精品在线观看| 国产一区二区三区在线观看精品| 日日夜夜免费精品| 日韩av不卡在线观看| 日本伊人午夜精品| 青娱乐精品视频| 免费观看成人av| 国产麻豆视频一区| 粉嫩蜜臀av国产精品网站| 成人免费视频播放| 99久久er热在这里只有精品15| 91在线观看免费视频| 色综合久久久久久久久| 欧美日本在线播放| 精品久久久久香蕉网| 国产亚洲精品中文字幕| 中文字幕 久热精品 视频在线| 国产精品国产精品国产专区不蜜| 亚洲桃色在线一区| 亚洲福利视频导航| 激情另类小说区图片区视频区| 国产精品一区二区果冻传媒| 国产91在线看| 91影院在线观看| 欧美日韩国产免费| 国产夜色精品一区二区av| 国产精品麻豆一区二区| 亚洲黄色免费网站| 麻豆精品久久久| 国产成人av影院| 色欧美乱欧美15图片| 欧美电影免费观看高清完整版在线| 国产偷国产偷精品高清尤物| 日韩美女视频一区二区| 男人的天堂久久精品| 国产一区二区三区| 欧美日韩视频专区在线播放| 久久先锋影音av鲁色资源| 亚洲自拍都市欧美小说| 亚洲高清免费在线| 国产黑丝在线一区二区三区| 欧美性色黄大片| 精品国产百合女同互慰| 一区二区三区在线观看欧美| 韩国中文字幕2020精品| 欧美日韩国产一级片| 国产精品天美传媒| 精品一二线国产| 欧美午夜视频网站| 国产精品盗摄一区二区三区| 免费日本视频一区| 欧美偷拍一区二区| 国产精品久线在线观看| 国产伦精一区二区三区| 欧美亚洲动漫制服丝袜| 国产精品情趣视频| 麻豆91小视频| 欧美久久婷婷综合色| 成人欧美一区二区三区黑人麻豆 | 极品少妇一区二区三区精品视频 | 成人av高清在线| 久久综合九色欧美综合狠狠 | 亚洲韩国精品一区| 成a人片国产精品| 久久精品视频一区| 美女精品自拍一二三四| 欧美日韩免费电影| 亚洲人成网站色在线观看| 风间由美一区二区三区在线观看| 精品久久久久久亚洲综合网 | 久久一区二区三区四区| 青青草一区二区三区| 欧美乱妇20p| 亚洲综合激情另类小说区| 色综合久久精品| 一区二区三区四区五区视频在线观看 | 国产乱一区二区| 2024国产精品视频| 国产米奇在线777精品观看| 欧美va在线播放| 久久www免费人成看片高清| 欧美丰满高潮xxxx喷水动漫| 亚洲国产欧美一区二区三区丁香婷 | 亚洲精品国久久99热| 91欧美激情一区二区三区成人| 国产精品国产三级国产有无不卡 | 国产精品久久三区| 91亚洲永久精品| 日韩理论片中文av| 欧美视频一区二区三区四区| 亚洲一区二区影院| 日韩欧美久久久| 丁香六月久久综合狠狠色| 国产精品女上位| 成人午夜在线播放| 亚洲自拍偷拍欧美| 日韩欧美不卡一区| 国产99一区视频免费| 国产精品电影一区二区| 在线看一区二区| 日韩影院在线观看| 国产女主播一区| 色欧美乱欧美15图片| 蜜臀va亚洲va欧美va天堂| 久久综合中文字幕| 91小视频免费观看| 日本午夜一本久久久综合| 国产欧美一区视频| 欧美三级电影一区| 国产精品亚洲一区二区三区妖精| 欧美激情中文字幕一区二区| 欧美性猛片xxxx免费看久爱| 狠狠色综合日日| 亚洲欧美激情一区二区| 日韩欧美不卡一区| 日本高清不卡一区| 国产在线精品一区二区夜色| 亚洲啪啪综合av一区二区三区| 5566中文字幕一区二区电影| 国产成人午夜精品5599| 午夜激情久久久| 国产精品美女久久久久久| 日韩一区二区三区三四区视频在线观看| 国产成a人无v码亚洲福利| 天天av天天翘天天综合网| 欧美国产97人人爽人人喊| 在线综合亚洲欧美在线视频| 成人av网站在线观看免费| 免费一级欧美片在线观看| 一区二区高清在线| 亚洲国产成人自拍| 91精品国产91久久久久久最新毛片| 成人国产精品免费| 韩国欧美国产1区| 五月综合激情网| 亚洲精品国产a久久久久久| 国产亚洲精品aa| 日韩精品一区在线| 欧美美女激情18p| 97久久精品人人做人人爽 | 中国av一区二区三区| 日韩免费电影网站| 91精品国产综合久久久蜜臀图片| 色婷婷激情综合| 99免费精品在线| 99热这里都是精品| 99久久久无码国产精品| 国产福利视频一区二区三区| 激情综合一区二区三区| 美女视频网站黄色亚洲| 日本不卡在线视频| 日韩电影免费在线| 奇米色777欧美一区二区| 亚洲午夜一区二区三区| 亚洲一区二区欧美激情| 国产精品的网站| 国产精品久久福利| 亚洲品质自拍视频| 亚洲第一综合色| 午夜私人影院久久久久| 日韩精品乱码av一区二区| 亚洲福利国产精品| 日韩精品欧美精品| 九色综合国产一区二区三区| 国产欧美精品区一区二区三区 | 成人动漫在线一区| 国产一区二区三区高清播放| 国产精品1区2区3区| 高清成人免费视频| 99免费精品视频| 69堂成人精品免费视频| 精品国产免费人成电影在线观看四季| 亚洲精品一区二区三区香蕉| 国产精品素人一区二区| 亚洲一区二区av在线| 蜜臀99久久精品久久久久久软件| 国产在线国偷精品免费看| 91在线视频免费观看| 91精品国产综合久久福利软件 | 成人av小说网| 欧美色成人综合| 国产农村妇女精品| 亚洲成人免费影院| 久久99这里只有精品| 91免费看`日韩一区二区| 6080午夜不卡| 久久久久久99久久久精品网站| 亚洲三级电影网站| 另类小说综合欧美亚洲| 99精品偷自拍| 精品少妇一区二区| 亚洲精品免费电影| 国产91对白在线观看九色| 欧美视频一区二区三区| 国产欧美一区二区精品性色超碰 | 99久久免费国产| 久久亚区不卡日本|