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

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

?? bascommondialog.bas

?? vb 訪問數據庫源代碼 哈哈哈還少?奶奶的
?? BAS
?? 第 1 頁 / 共 2 頁
字號:
Public FontDialog As CHOOSEFONTS
Public PrintDialog As PRINTDLGS
Dim parenthWnd As Long

Public Function ShowOpen(ByVal hwnd As Long, Optional ByVal centerForm As Boolean = True) As SelectedFile
Dim ret As Long
Dim Count As Integer
Dim fileNameHolder As String
Dim LastCharacter As Integer
Dim NewCharacter As Integer
Dim tempFiles(1 To 200) As String
Dim hInst As Long
Dim Thread As Long
    
    parenthWnd = hwnd
    FileDialog.nStructSize = Len(FileDialog)
    FileDialog.hwndOwner = hwnd
    FileDialog.sFileTitle = Space$(2048)
    FileDialog.nTitleSize = Len(FileDialog.sFileTitle)
    FileDialog.sFile = FileDialog.sFile & Space$(2047) & Chr$(0)
    FileDialog.nFileSize = Len(FileDialog.sFile)
    
    'If FileDialog.flags = 0 Then
        FileDialog.flags = OFS_FILE_OPEN_FLAGS
    'End If
    
    'Set up the CBT hook
    hInst = GetWindowLong(hwnd, GWL_HINSTANCE)
    Thread = GetCurrentThreadId()
    If centerForm = True Then
        hHook = SetWindowsHookEx(WH_CBT, AddressOf WinProcCenterForm, hInst, Thread)
    Else
        hHook = SetWindowsHookEx(WH_CBT, AddressOf WinProcCenterScreen, hInst, Thread)
    End If
    
    ret = GetOpenFileName(FileDialog)

    If ret Then
        If Trim$(FileDialog.sFileTitle) = "" Then
            LastCharacter = 0
            Count = 0
            While ShowOpen.nFilesSelected = 0
                NewCharacter = InStr(LastCharacter + 1, FileDialog.sFile, Chr$(0), vbTextCompare)
                If Count > 0 Then
                    tempFiles(Count) = Mid(FileDialog.sFile, LastCharacter + 1, NewCharacter - LastCharacter - 1)
                Else
                    ShowOpen.sLastDirectory = Mid(FileDialog.sFile, LastCharacter + 1, NewCharacter - LastCharacter - 1)
                End If
                Count = Count + 1
                If InStr(NewCharacter + 1, FileDialog.sFile, Chr$(0), vbTextCompare) = InStr(NewCharacter + 1, FileDialog.sFile, Chr$(0) & Chr$(0), vbTextCompare) Then
                    tempFiles(Count) = Mid(FileDialog.sFile, NewCharacter + 1, InStr(NewCharacter + 1, FileDialog.sFile, Chr$(0) & Chr$(0), vbTextCompare) - NewCharacter - 1)
                    ShowOpen.nFilesSelected = Count
                End If
                LastCharacter = NewCharacter
            Wend
            ReDim ShowOpen.sFiles(1 To ShowOpen.nFilesSelected)
            For Count = 1 To ShowOpen.nFilesSelected
                ShowOpen.sFiles(Count) = tempFiles(Count)
            Next
        Else
            ReDim ShowOpen.sFiles(1 To 1)
            ShowOpen.sLastDirectory = left$(FileDialog.sFile, FileDialog.nFileOffset)
            ShowOpen.nFilesSelected = 1
            ShowOpen.sFiles(1) = Mid(FileDialog.sFile, FileDialog.nFileOffset + 1, InStr(1, FileDialog.sFile, Chr$(0), vbTextCompare) - FileDialog.nFileOffset - 1)
        End If
        ShowOpen.bCanceled = False
        Exit Function
    Else
        ShowOpen.sLastDirectory = ""
        ShowOpen.nFilesSelected = 0
        ShowOpen.bCanceled = True
        Erase ShowOpen.sFiles
        Exit Function
    End If
End Function

Public Function ShowSave(ByVal hwnd As Long, Optional ByVal centerForm As Boolean = True) As SelectedFile
Dim ret As Long
Dim hInst As Long
Dim Thread As Long
    
    parenthWnd = hwnd
    FileDialog.nStructSize = Len(FileDialog)
    FileDialog.hwndOwner = hwnd
    FileDialog.sFileTitle = Space$(2048)
    FileDialog.nTitleSize = Len(FileDialog.sFileTitle)
    If FileDialog.sFile = "" Then
        FileDialog.sFile = Space$(2047) & Chr$(0)
    ElseIf Right(FileDialog.sFile, 1) <> Chr$(0) Then
        FileDialog.sFile = FileDialog.sFile & Space$(2047 - Len(FileDialog.sFile)) & Chr$(0)
    End If
    FileDialog.nFileSize = Len(FileDialog.sFile)
    
    If FileDialog.flags = 0 Then
        FileDialog.flags = OFS_FILE_SAVE_FLAGS
    End If
    
    'Set up the CBT hook
    hInst = GetWindowLong(hwnd, GWL_HINSTANCE)
    Thread = GetCurrentThreadId()
    If centerForm = True Then
        hHook = SetWindowsHookEx(WH_CBT, AddressOf WinProcCenterForm, hInst, Thread)
    Else
        hHook = SetWindowsHookEx(WH_CBT, AddressOf WinProcCenterScreen, hInst, Thread)
    End If
    
    ret = GetSaveFileName(FileDialog)
    ReDim ShowSave.sFiles(1)

    If ret Then
        ShowSave.sLastDirectory = left$(FileDialog.sFile, FileDialog.nFileOffset)
        ShowSave.nFilesSelected = 1
        ShowSave.sFiles(1) = Mid(FileDialog.sFile, FileDialog.nFileOffset + 1, InStr(1, FileDialog.sFile, Chr$(0), vbTextCompare) - FileDialog.nFileOffset - 1)
        ShowSave.bCanceled = False
        Exit Function
    Else
        ShowSave.sLastDirectory = ""
        ShowSave.nFilesSelected = 0
        ShowSave.bCanceled = True
        Erase ShowSave.sFiles
        Exit Function
    End If
End Function

Public Function ShowColor(ByVal hwnd As Long, Optional ByVal centerForm As Boolean = True) As SelectedColor
Dim customcolors() As Byte  ' dynamic (resizable) array
Dim i As Integer
Dim ret As Long
Dim hInst As Long
Dim Thread As Long

    parenthWnd = hwnd
    If ColorDialog.lpCustColors = "" Then
        ReDim customcolors(0 To 16 * 4 - 1) As Byte  'resize the array
    
        For i = LBound(customcolors) To UBound(customcolors)
          customcolors(i) = 254 ' sets all custom colors to white
        Next i
        
        ColorDialog.lpCustColors = StrConv(customcolors, vbUnicode)  ' convert array
    End If
    
    ColorDialog.hwndOwner = hwnd
    ColorDialog.lStructSize = Len(ColorDialog)
    ColorDialog.flags = COLOR_FLAGS
    
    'Set up the CBT hook
    hInst = GetWindowLong(hwnd, GWL_HINSTANCE)
    Thread = GetCurrentThreadId()
    If centerForm = True Then
        hHook = SetWindowsHookEx(WH_CBT, AddressOf WinProcCenterForm, hInst, Thread)
    Else
        hHook = SetWindowsHookEx(WH_CBT, AddressOf WinProcCenterScreen, hInst, Thread)
    End If
    
    ret = ChooseColor(ColorDialog)
    If ret Then
        ShowColor.bCanceled = False
        ShowColor.oSelectedColor = ColorDialog.rgbResult
        Exit Function
    Else
        ShowColor.bCanceled = True
        ShowColor.oSelectedColor = &H0&
        Exit Function
    End If
End Function

Public Function ShowFont(ByVal hwnd As Long, ByVal startingFontName As String, Optional ByVal centerForm As Boolean = True) As SelectedFont
Dim ret As Long
Dim lfLogFont As LOGFONT
Dim hInst As Long
Dim Thread As Long
Dim i As Integer
    
    parenthWnd = hwnd
    FontDialog.nSizeMax = 0
    FontDialog.nSizeMin = 0
    FontDialog.nFontType = Screen.FontCount
    FontDialog.hwndOwner = hwnd
    FontDialog.hDC = 0
    FontDialog.lpfnHook = 0
    FontDialog.lCustData = 0
    FontDialog.lpLogFont = VarPtr(lfLogFont)
    FontDialog.iPointSize = 10
    FontDialog.lpTemplateName = Space$(2048)
    FontDialog.rgbColors = RGB(0, 255, 255)
    FontDialog.lStructSize = Len(FontDialog)
    
    If FontDialog.flags = 0 Then
        FontDialog.flags = CF_SCREENFONTS Or CF_EFFECTS Or CF_INITTOLOGFONTSTRUCT 'Or CF_EFFECTS
    End If
    
    For i = 0 To Len(startingFontName) - 1
        lfLogFont.lfFaceName(i) = Asc(Mid(startingFontName, i + 1, 1))
    Next
    
    'Set up the CBT hook
    hInst = GetWindowLong(hwnd, GWL_HINSTANCE)
    Thread = GetCurrentThreadId()
    If centerForm = True Then
        hHook = SetWindowsHookEx(WH_CBT, AddressOf WinProcCenterForm, hInst, Thread)
    Else
        hHook = SetWindowsHookEx(WH_CBT, AddressOf WinProcCenterScreen, hInst, Thread)
    End If
    
    ret = ChooseFont(FontDialog)
        
    If ret Then
        ShowFont.bCanceled = False
        ShowFont.bBold = IIf(lfLogFont.lfWeight > 400, 1, 0)
        ShowFont.bItalic = lfLogFont.lfItalic
        ShowFont.bStrikeOut = lfLogFont.lfStrikeOut
        ShowFont.bUnderline = lfLogFont.lfUnderline
        ShowFont.lColor = FontDialog.rgbColors
        ShowFont.nSize = FontDialog.iPointSize / 10
        For i = 0 To 31
            ShowFont.sSelectedFont = ShowFont.sSelectedFont + Chr(lfLogFont.lfFaceName(i))
        Next
    
        ShowFont.sSelectedFont = Mid(ShowFont.sSelectedFont, 1, InStr(1, ShowFont.sSelectedFont, Chr(0)) - 1)
        Exit Function
    Else
        ShowFont.bCanceled = True
        Exit Function
    End If
End Function
Public Function ShowPrinter(ByVal hwnd As Long, Optional ByVal centerForm As Boolean = True) As Long
Dim hInst As Long
Dim Thread As Long
    
    parenthWnd = hwnd
    PrintDialog.hwndOwner = hwnd
    PrintDialog.lStructSize = Len(PrintDialog)
    
    'Set up the CBT hook
    hInst = GetWindowLong(hwnd, GWL_HINSTANCE)
    Thread = GetCurrentThreadId()
    If centerForm = True Then
        hHook = SetWindowsHookEx(WH_CBT, AddressOf WinProcCenterForm, hInst, Thread)
    Else
        hHook = SetWindowsHookEx(WH_CBT, AddressOf WinProcCenterScreen, hInst, Thread)
    End If
    
    ShowPrinter = PrintDlg(PrintDialog)
End Function
Private Function WinProcCenterScreen(ByVal lMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
    Dim rectForm As RECT, rectMsg As RECT
    Dim x As Long, y As Long
    If lMsg = HCBT_ACTIVATE Then
        'Show the MsgBox at a fixed location (0,0)
        GetWindowRect wParam, rectMsg
        x = Screen.Width / Screen.TwipsPerPixelX / 2 - (rectMsg.Right - rectMsg.left) / 2
        y = Screen.Height / Screen.TwipsPerPixelY / 2 - (rectMsg.Bottom - rectMsg.top) / 2
        Debug.Print "Screen " & Screen.Height / 2
        Debug.Print "MsgBox " & (rectMsg.Right - rectMsg.left) / 2
        SetWindowPos wParam, 0, x, y, 0, 0, SWP_NOSIZE Or SWP_NOZORDER Or SWP_NOACTIVATE
        'Release the CBT hook
        UnhookWindowsHookEx hHook
    End If
    WinProcCenterScreen = False
End Function

Private Function WinProcCenterForm(ByVal lMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
    Dim rectForm As RECT, rectMsg As RECT
    Dim x As Long, y As Long
    'On HCBT_ACTIVATE, show the MsgBox centered over Form1
    If lMsg = HCBT_ACTIVATE Then
        'Get the coordinates of the form and the message box so that
        'you can determine where the center of the form is located
        GetWindowRect parenthWnd, rectForm
        GetWindowRect wParam, rectMsg
        x = (rectForm.left + (rectForm.Right - rectForm.left) / 2) - ((rectMsg.Right - rectMsg.left) / 2)
        y = (rectForm.top + (rectForm.Bottom - rectForm.top) / 2) - ((rectMsg.Bottom - rectMsg.top) / 2)
        'Position the msgbox
        SetWindowPos wParam, 0, x, y, 0, 0, SWP_NOSIZE Or SWP_NOZORDER Or SWP_NOACTIVATE
        'Release the CBT hook
        UnhookWindowsHookEx hHook
     End If
     WinProcCenterForm = False
End Function

Public Function DetermineDirectory(inputString As String) As String
Dim pos As Integer
    pos = InStrRev(inputString, "\", , vbTextCompare)
    DetermineDirectory = Mid(inputString, 1, pos)
End Function
Public Function DetermineFilename(inputString As String) As String
Dim pos As Integer
    If InStr(1, inputString, "\") = 0 Then
        DetermineFilename = inputString
    Else
        pos = InStrRev(inputString, "\", , vbTextCompare)
        DetermineFilename = Mid(inputString, pos + 1, Len(inputString) - pos)
    End If
End Function


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av网在线| 国产一区二区三区av电影 | 欧美一区二区大片| 色婷婷av一区二区三区大白胸| 久久精品99国产国产精| 亚洲二区在线视频| 一区在线播放视频| 国产欧美一区在线| 久久精品夜色噜噜亚洲aⅴ| 欧美成人一区二区| 国产日韩精品一区二区三区| 久久精品男人的天堂| 国产精品婷婷午夜在线观看| 自拍偷拍国产精品| 亚洲国产毛片aaaaa无费看| 成人免费在线视频| 亚洲精品国产无套在线观| 亚洲猫色日本管| 蜜臀精品久久久久久蜜臀| 国产suv精品一区二区6| 欧美少妇一区二区| 欧美色国产精品| 91美女在线视频| 欧美亚洲国产bt| 精品一区二区在线看| 亚洲永久免费av| 一区二区三区中文字幕在线观看| 自拍偷自拍亚洲精品播放| 国产精品麻豆视频| 国产精品久久毛片a| 国产精品超碰97尤物18| 亚洲天堂福利av| 夜夜爽夜夜爽精品视频| 图片区日韩欧美亚洲| 日韩在线a电影| 久久国产精品99久久人人澡| 黄页网站大全一区二区| 欧美色网一区二区| 国产精品毛片a∨一区二区三区| 亚洲午夜久久久久久久久电影网| 亚洲午夜精品在线| 国产成人精品1024| 欧美日韩精品久久久| 日本一区二区不卡视频| 亚洲第一福利一区| 国产乱码精品1区2区3区| 欧美视频中文字幕| 精品国产乱码久久久久久久久| 亚洲欧洲精品一区二区精品久久久 | 99精品视频在线播放观看| 欧美日韩一二区| 久久精品欧美一区二区三区不卡| 一区二区欧美视频| 国产在线精品不卡| 欧美群妇大交群的观看方式| 国产女人18水真多18精品一级做| 亚洲一卡二卡三卡四卡| 国产一区在线不卡| 欧美另类videos死尸| 亚洲人成精品久久久久| 国产精品综合一区二区| 欧美日韩国产综合久久| 一区二区三区精品在线| 狂野欧美性猛交blacked| 91久久精品一区二区三区| 亚洲欧美中日韩| 91丨九色丨国产丨porny| 夜夜嗨av一区二区三区四季av| 欧美午夜影院一区| 无码av中文一区二区三区桃花岛| 91精品国产高清一区二区三区 | ...av二区三区久久精品| 久久99精品一区二区三区| 欧美日韩三级一区| 日本强好片久久久久久aaa| 日本久久一区二区| 一区二区三区精品在线| 色综合久久久久久久久久久| 亚洲欧美影音先锋| 97se亚洲国产综合自在线| 亚洲精品久久7777| 欧美色男人天堂| 首页国产丝袜综合| 欧美变态口味重另类| 国产精品自拍毛片| 国产欧美一区二区精品忘忧草| 国产精品一区二区三区网站| 中文字幕av不卡| 国产美女精品在线| 国产人久久人人人人爽| av不卡免费电影| 亚洲尤物视频在线| 日韩精品一区二区三区视频| 国产最新精品免费| 国产精品久久久久一区二区三区共| 99久久国产综合色|国产精品| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 91在线视频网址| 午夜精品123| 久久人人爽人人爽| 白白色亚洲国产精品| 亚洲国产成人91porn| 日韩午夜中文字幕| 成人免费高清在线| 亚洲欧洲日韩在线| 欧洲亚洲精品在线| 美女高潮久久久| 一区在线播放视频| 日韩亚洲欧美中文三级| 国v精品久久久网| 亚洲电影欧美电影有声小说| 欧美不卡123| 欧美日韩激情一区二区三区| 国产一区二区三区国产| 亚洲成人免费在线| 中文无字幕一区二区三区| 91麻豆精品国产91久久久久久 | 亚洲一区影音先锋| 国产欧美日韩另类视频免费观看| 666欧美在线视频| 日本伦理一区二区| 色欧美日韩亚洲| 色哟哟一区二区三区| 老司机精品视频一区二区三区| **网站欧美大片在线观看| 精品成人佐山爱一区二区| 欧洲在线/亚洲| 9i看片成人免费高清| 国产高清在线观看免费不卡| 青娱乐精品视频| 亚洲国产精品一区二区久久 | 日韩电影在线一区| 亚洲制服欧美中文字幕中文字幕| 久久99精品国产麻豆婷婷| 亚洲素人一区二区| 国产精品久久久久久久久晋中| 精品99久久久久久| 精品毛片乱码1区2区3区| 欧美精品一级二级| 欧美日韩国产综合草草| 欧洲av一区二区嗯嗯嗯啊| 99精品国产热久久91蜜凸| 成人在线综合网| 国产盗摄视频一区二区三区| 国产一区二区三区四区五区入口| 青青草国产精品亚洲专区无| 亚洲国产综合色| 日韩高清不卡在线| 免费成人在线影院| 免费精品视频在线| 久久99国内精品| 国产精品资源在线| 国产成人精品免费在线| 国产成人免费视频精品含羞草妖精| 黑人巨大精品欧美一区| 久久99精品国产| 成人性视频免费网站| 94-欧美-setu| 欧美日韩一区视频| 日韩三级.com| 国产欧美日韩亚州综合| 国产精品福利电影一区二区三区四区 | 欧美日韩一区久久| 欧美不卡123| 国产精品乱码久久久久久 | 久久影院午夜片一区| 中文字幕乱码久久午夜不卡| 国产精品剧情在线亚洲| 一区二区成人在线观看| 丝袜亚洲另类欧美| 国产呦萝稀缺另类资源| 成人精品一区二区三区中文字幕| 日韩情涩欧美日韩视频| 欧美美女网站色| 国产人成亚洲第一网站在线播放 | 日韩精品视频网站| 国产成人在线免费观看| 91免费观看视频| 精品国免费一区二区三区| 中文无字幕一区二区三区| 午夜精品一区二区三区免费视频 | 国产精品欧美一级免费| 天天av天天翘天天综合网色鬼国产 | 97久久精品人人做人人爽| 日韩一区二区三区四区五区六区 | 91碰在线视频| 精品国产乱码91久久久久久网站| 亚洲精品日日夜夜| 国产成人在线视频播放| 欧美一区二区黄色| 亚洲一区在线播放| www.亚洲人| 精品日韩一区二区| 亚洲国产精品一区二区www| 国产成人在线免费观看| 精品国产污污免费网站入口 | 蜜桃在线一区二区三区| 一本色道久久加勒比精品| 日本亚洲一区二区| 久久国内精品自在自线400部|