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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? frmcodelib.frm

?? 一個幫助了解數(shù)據(jù)庫的例子
?? FRM
?? 第 1 頁 / 共 5 頁
字號:
    End If
    
    If Len(Dir$(sDBName)) > 0 Then
        msDBFileName = sDBName
    Else
        msDBFileName = ""
    End If

End Sub

Private Sub DoStartUp()
'
' Get settings
'
    Dim sDBName As String
    

    Me.Left = GetSetting("VBCodeLib", "Settings", "MainLeft", 2055)
    Me.Top = GetSetting("VBCodeLib", "Settings", "MainTop", 2175)
    Me.Width = GetSetting("VBCodeLib", "Settings", "MainWidth", 11000)
    Me.Height = GetSetting("VBCodeLib", "Settings", "MainHeight", 6210)
    tvCodeItems.Width = GetSetting("VBCodeLib", "Settings", "TreeWidth", 3270)
    mbShowBookmarks = GetSetting("VBCodeLib", "Settings", "ViewBookMarks", True)
'
' Turn off delete & bookmark tools
'
    tbTools.Buttons("DELETE").Enabled = False
    tbTools.Buttons("BOOKMARK").Enabled = False
            
'
' Check that the user wants to backup the database
' at startup
'
    If Not (moSettings.BackupDatabaseAtStart) Then
        Exit Sub
    End If
    
    sDBName = App.Path & "\codebackup.mdb"
'
' Kill the backup if it already exists
'
    If Len(Dir$(sDBName)) > 0 Then
        Kill sDBName
    End If
    
    If Len(msDBFileName) = 0 Then
        MsgBox "Cannot find the last opened database : " & msDBFileName, vbInformation, App.ProductName
    Else
        DBEngine.CompactDatabase msDBFileName, sDBName
    End If
    
    
    Exit Sub

vbErrorHandler:
    MsgBox Err.Number & " " & Err.Description & " " & Err.Source & " frmCodeLib::DoStartUp", , App.ProductName

End Sub

Private Sub DoUnload()
    Dim sBackupName As String
    Dim sDBName As String
    
    On Error GoTo vbErrorHandler
'
' Save settings if required
'
    If moSettings.SaveFormLayout Then
        If Me.WindowState <> vbMinimized Then
            SaveSetting "VBCodeLib", "Settings", "MainLeft", Me.Left
            SaveSetting "VBCodeLib", "Settings", "MainTop", Me.Top
            SaveSetting "VBCodeLib", "Settings", "MainWidth", Me.Width
            SaveSetting "VBCodeLib", "Settings", "MainHeight", Me.Height
            SaveSetting "VBCodeLib", "Settings", "TreeWidth", tvCodeItems.Width
        End If
        SaveSetting "VBCodeLib", "Settings", "ViewBookMarks", mbShowBookmarks
    End If
    
    ctlBookMarkList.Terminate
    ctlCodeItemDetails.Terminate
'
' Check if we want to compact the database
'
    If Not (moSettings.CompactDatabaseOnExit) Then
        Exit Sub
    End If
'
' Compact it now !
'
    sDBName = msDBFileName
    sBackupName = App.Path & "\dbbackup.mdb"
'
' Check if the temporary backup database already exists
'
    If Len(Dir$(sBackupName)) > 0 Then
        Kill sBackupName
    End If
'
' Here's where we compact the database - first copying
' it to a temporary db
'
    If Not (mDB Is Nothing) Then
        mDB.Close
        Set mDB = Nothing
    End If
    
    If Len(sDBName) > 0 Then
        DBEngine.CompactDatabase sDBName, sBackupName
'
' Now we remove the database
'
        Kill sDBName
'
' Now we compact the temporary DB back into our original
' database
'
        DBEngine.CompactDatabase sBackupName, sDBName
'
' And Kill the backup !
'
        Kill sBackupName
    End If
    Exit Sub
    
vbErrorHandler:
    MsgBox Err.Number & " " & Err.Description & " " & Err.Source & " frmCodeLib::DoUnload", , App.ProductName
    
End Sub

Private Sub RecursiveDeleteCode(nNode As Node)
'
' Recursively Delete Node Items
'
    Dim nNodeChild As Node
    Dim iIndex As Integer
    Dim iDO As IDataObject
    Dim sKey As String
    
    Set iDO = New CCodeItem
    sKey = nNode.Key
    sKey = Right$(sKey, Len(sKey) - 1)
'
' Delete affected data object - we could have done this all through Access, but
' this is intended to show recursion through TreeView Nodes
'

    iDO.Initialise mDB, sKey
    iDO.Delete
    iDO.Commit
    Set iDO = Nothing
    
    Set nNodeChild = nNode.Child
    
    ' Now walk through the current parent node's children
    Do While Not (nNodeChild Is Nothing)
    
    ' If the current child node has it's own children...
        RecursiveDeleteCode nNodeChild
    ' Get the current child node's next sibling
        Set nNodeChild = nNodeChild.Next
    Loop
End Sub


Private Sub SetupSysTrayIcon()
    On Error GoTo vbErrorHandler
'
' Setup the System Tray Icon
'
    Dim tTrayStuff As NOTIFYICONDATA
    
    With tTrayStuff
        .cbSize = Len(tTrayStuff)
        .hwnd = picSysBar.hwnd
        .uId = 1&
        .uFlags = NIF_ICON Or NIF_TIP Or NIF_MESSAGE
        .uCallBackMessage = WM_MOUSEMOVE
        .hIcon = Me.Icon
        .szTip = "VBCodeLibrary Tool" & vbNullChar
        Shell_NotifyIcon NIM_ADD, tTrayStuff
    End With
 
    Exit Sub

vbErrorHandler:
    MsgBox Err.Number & "  " & Err.Description & " " & Err.Source & "::frmBrowser_SetupSysTrayIcon", , App.ProductName
End Sub


Private Sub KillSysTrayIcon()
    Dim t As NOTIFYICONDATA
'
' Kill the icon in the system tray
'
    With t
        .cbSize = Len(t)
        .hwnd = picSysBar.hwnd
        .uId = 1&
    End With
    
    Shell_NotifyIcon NIM_DELETE, t

End Sub


Private Sub BoldTreeNode(nNode As Node)
'
' Make a tree node bold
'
' Many thanks to VBNet for this code
'

On Error GoTo vbErrorHandler

    Dim TVI As TVITEM
    Dim lRet As Long
    Dim hItemTV As Long
    Dim lHwnd As Long
    
    Set tvCodeItems.SelectedItem = nNode
    
    lHwnd = tvCodeItems.hwnd
    hItemTV = SendMessageLong(lHwnd, TVM_GETNEXTITEM, TVGN_CARET, 0&)
    
    If hItemTV > 0 Then
        With TVI
            .hItem = hItemTV
            .mask = TVIF_STATE
            .stateMask = TVIS_BOLD
            lRet = SendMessageAny(lHwnd, TVM_GETITEM, 0&, TVI)
            .State = TVIS_BOLD
        End With
        lRet = SendMessageAny(lHwnd, TVM_SETITEM, 0&, TVI)
    End If
    
    Exit Sub

vbErrorHandler:
    MsgBox Err.Number & " " & Err.Description & " " & Err.Source, , "frmCodeLib::BoldTreeNode"

End Sub

Private Sub ShowSettings()

On Error GoTo vbErrorHandler
'
' Show the Settings Dialog and update any settings
'
    Dim frmOpt As frmOptions
    
    Set frmOpt = New frmOptions
    Load frmOpt
    
    With frmOpt
        .Initialise moSettings
        .Show vbModal, Me
    End With
    Unload frmOpt
'
' Clear the form from memory
'
    Set frmOpt = Nothing

    Exit Sub

vbErrorHandler:
    MsgBox Err.Number & " " & Err.Description & " " & Err.Source, , "frmCodeLib::ShowSettings"

End Sub

Private Sub tvCodeItems_OLECompleteDrag(Effect As Long)
    Screen.MousePointer = vbDefault
    tmrDragTimer.Enabled = False
End Sub

Private Sub tvCodeItems_OLEDragDrop(Data As ComctlLib.DataObject, Effect As Long, Button As Integer, Shift As Integer, x As Single, y As Single)
'
' Handle the dragging and-a dropping of treeview nodes here
'
    Dim sTmpStr As String
    Dim iDO As IDataObject
    Dim oTargetNode As Node
    Dim sParentKey As String
    Dim sKey As String
    Dim oCodeItem As CCodeItem
    Dim oOldParentNode As Node
    
    On Error Resume Next
'
' Check whether the clipboard data is in our special defined format
'
    sTmpStr = Data.GetFormat(miClipBoardFormat)
    
    If Err Or sTmpStr = "False" Then    ' it's not, so don't allow dropping
        Set mnDragNode = Nothing
        Set tvCodeItems.DropHighlight = Nothing
        Err.Clear
        Effect = vbDropEffectNone
        Exit Sub
    End If
    
    On Error GoTo vbErrorHandler
    
    If mnDragNode Is Nothing Then
        Set mnDragNode = Nothing
        Set tvCodeItems.DropHighlight = Nothing
        Effect = vbDropEffectNone
        Exit Sub
    End If
    
    Set oTargetNode = tvCodeItems.DropHighlight

'
    If oTargetNode Is Nothing Then
        Set mnDragNode = Nothing
        Set tvCodeItems.DropHighlight = Nothing
        Effect = vbDropEffectNone
        Exit Sub
    End If
  
    Set oOldParentNode = mnDragNode.Parent
   
        
    Set mnDragNode.Parent = oTargetNode
    
'
' Here's where we handle the drop - don't forget that we have to reparent
' our data objects to point to the new data object (or 0 if root)
'
    sParentKey = oTargetNode.Key

    If sParentKey = "ROOT" Then
        sParentKey = "0"
    Else
        sParentKey = Right$(sParentKey, Len(sParentKey) - 1)
    End If

    sKey = mnDragNode.Key
    sKey = Right$(sKey, Len(sKey) - 1)

'
' Initialise the dataobject and set it's new parent key
'
    Set iDO = New CCodeItem
    iDO.Initialise mDB, sKey
    Set oCodeItem = iDO
    oCodeItem.ParentKey = sParentKey
    iDO.Commit
    Set iDO = Nothing
    Set oCodeItem = Nothing

    Set tvCodeItems.DropHighlight = Nothing

    Set mnDragNode = Nothing
    tmrDragTimer.Enabled = False
    If oTargetNode.Key <> "ROOT" Then
        oTargetNode.ExpandedImage = "OPENFOLDER"
    End If
    If oOldParentNode.Children <= 1 And oOldParentNode.Key <> oTargetNode.Key Then
        If oOldParentNode.Key <> "ROOT" Then
            oOldParentNode.ExpandedImage = "CHILD"
            oOldParentNode.Image = "CHILD"
        End If
    End If
    
    
    
    Exit Sub

vbErrorHandler:
    
    Set mnDragNode = Nothing
    Set tvCodeItems.DropHighlight = Nothing
'
' This will more than likely be 'would cause a loop' or whatever
'
    MsgBox Err.Description, , App.ProductName
    Effect = vbDropEffectNone
    
End Sub

Private Sub tvCodeItems_OLEDragOver(Data As ComctlLib.DataObject, Effect As Long, Button As Integer, Shift As Integer, x As Single, y As Single, State As Integer)
        
    Dim sTmpStr As String
    Dim nTargetNode As Node
    On Error Resume Next
'
' First check that we allow this type of data to be dropped here
'
    sTmpStr = Data.GetFormat(miClipBoardFormat)
    
    If Err Or sTmpStr = "False" Then
        Err.Clear
        Effect = vbDropEffectNone
        Exit Sub
    End If
        
    Set nTargetNode = tvCodeItems.HitTest(x, y)
    If nTargetNode Is Nothing Then
        Set tvCodeItems.DropHighlight = Nothing
        Exit Sub
    End If

    If nTargetNode.Key = mnDragNode.Key Then
        Set tvCodeItems.DropHighlight = Nothing
        Effect = vbDropEffectNone
    Else
        Set tvCodeItems.DropHighlight = nTargetNode
    End If
    If y > 0 And y < 300 Then
        miScrollDir = -1
    ElseIf (y < tvCodeItems.Height) And y > (tvCodeItems.Height - 500) Then
        miScrollDir = 1
    Else
        miScrollDir = 0
    End If
    
End Sub

Private Sub tvCodeItems_OLEStartDrag(Data As ComctlLib.DataObject, AllowedEffects As Long)
    Dim byt() As Byte
'
' Place the key of the dragged item into the clipboard in our own format
' declared in GetClipboardFormat api
'
    AllowedEffects = vbDropEffectMove
    byt = mnDragNode.Key
    
    Data.SetData byt, miClipBoardFormat
    
    
End Sub

Private Sub ClearTreeView()
'
' Very fast Clearing of treeview control
'
' Thanks to Brad Martinez for discovering this .
'
    Dim lHwnd As Long
    Dim hItem As Long
    
    lHwnd = tvCodeItems.hwnd
    
    TreeRedraw tvCodeItems.hwnd, False
    
    
    Do
        hItem = SendMessageLong(lHwnd, TVM_GETNEXTITEM, TVGN_ROOT, &O0)
        If hItem > 0 Then
            SendMessageLong lHwnd, TVM_DELETEITEM, &O0, hItem
        Else
            Exit Do
        End If
    Loop
    
    TreeRedraw tvCodeItems.hwnd, True

End Sub

Private Sub SizeControls(ByVal x As Long)
    On Error Resume Next
'
' Size all controls based on the splitter bar, and whether we're
' showing the Bookmarks control
'
    Dim lHeightOffSet As Long
   
    'set the width
    If x < 1500 Then x = 1500
    If x > (Me.Width - 1500) Then x = Me.Width - 1500
    
    If mbShowBookmarks Then
        ctlBookMarkList.Height = Me.ScaleHeight * (2 / 8)
        lHeightOffSet = ctlBookMarkList.Height
    Else
        lHeightOffSet = 0
    End If
    
    With imgSplitter
        .Left = x

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
天堂成人免费av电影一区| 国产性做久久久久久| 亚洲综合色成人| 欧洲精品一区二区| 亚洲一区在线观看网站| 欧美日韩精品高清| 久久爱www久久做| 久久精品一二三| 99精品视频在线播放观看| 最新不卡av在线| 欧美精品亚洲二区| 久久国产乱子精品免费女| 久久精品视频在线看| 91丨九色丨尤物| 日av在线不卡| 国产精品免费久久久久| 在线一区二区三区四区五区| 亚洲一区二区三区不卡国产欧美| 9191久久久久久久久久久| 狠狠色狠狠色合久久伊人| 国产精品久久久久久久裸模| 欧美日韩国产小视频在线观看| 精品一区二区三区日韩| 中文字幕视频一区| 日韩女优av电影在线观看| 丰满亚洲少妇av| 丝袜a∨在线一区二区三区不卡| 国产欧美日韩精品a在线观看| 91久久香蕉国产日韩欧美9色| 麻豆视频观看网址久久| 中文字幕一区在线| 日韩免费在线观看| aa级大片欧美| 国产综合久久久久影院| 一区二区三区不卡视频| 久久久影视传媒| 欧美日韩在线三区| 成人短视频下载| 蜜臀精品一区二区三区在线观看 | 色欧美乱欧美15图片| 久久精品国产亚洲aⅴ| 亚洲乱码国产乱码精品精小说| 91精品国产一区二区| 99视频精品全部免费在线| 麻豆精品视频在线观看视频| 亚洲裸体xxx| 国产日韩欧美一区二区三区综合| 欧美视频一区在线| 99久久精品免费看国产| 韩国一区二区视频| 日韩激情视频网站| 一级中文字幕一区二区| 国产日韩欧美激情| 欧美成人aa大片| 欧美剧情片在线观看| 色综合久久88色综合天天6 | 午夜精品成人在线视频| 18成人在线观看| 国产偷国产偷精品高清尤物| 日韩欧美国产一区在线观看| 色嗨嗨av一区二区三区| www.亚洲在线| 风间由美一区二区三区在线观看| 经典三级一区二区| 男女男精品视频| 男女激情视频一区| 日韩有码一区二区三区| 五月天网站亚洲| 日韩黄色片在线观看| 偷拍日韩校园综合在线| 亚洲高清久久久| 亚洲国产wwwccc36天堂| 亚洲一区电影777| 亚洲国产精品综合小说图片区| 国产精品一区二区在线观看网站| 香蕉加勒比综合久久| 亚洲一区二区欧美日韩| 亚洲成人7777| 日韩中文字幕区一区有砖一区 | 奇米综合一区二区三区精品视频| 图片区小说区区亚洲影院| 婷婷中文字幕一区三区| 视频精品一区二区| 午夜精品久久久久久久蜜桃app| 午夜久久久久久久久久一区二区| 三级成人在线视频| 蜜臀久久久久久久| 黑人巨大精品欧美一区| 国产一区二区三区观看| 波多野结衣在线aⅴ中文字幕不卡| 成人网在线播放| 91美女片黄在线观看| 在线精品国精品国产尤物884a| 欧美色成人综合| 精品国产成人系列| 日本一区二区三区dvd视频在线| 久久精品视频一区二区| 日韩码欧中文字| 亚洲大片免费看| 国产一区视频导航| av在线综合网| 欧美日韩精品三区| 久久久久久免费| 亚洲乱码国产乱码精品精98午夜| 亚洲第一狼人社区| 久99久精品视频免费观看| 成人av在线资源网站| 在线影视一区二区三区| 91精品在线一区二区| 国产日韩av一区二区| 亚洲视频免费观看| 日韩av中文字幕一区二区三区| 国产在线不卡视频| 色噜噜偷拍精品综合在线| 欧美一区二区女人| 国产精品区一区二区三区| 亚洲国产精品久久一线不卡| 黄色精品一二区| 欧洲av在线精品| 久久久久久亚洲综合| 香港成人在线视频| 成年人网站91| 日韩一区二区三区视频| 中文字幕一区av| 久久精品国产一区二区三| 色婷婷精品大在线视频| 久久尤物电影视频在线观看| 亚洲人精品午夜| 国内精品自线一区二区三区视频| 一本久久a久久免费精品不卡| 日韩女优电影在线观看| 亚洲激情图片小说视频| 国产精品一区二区免费不卡| 欧美性高清videossexo| 国产精品日日摸夜夜摸av| 久久精品国产77777蜜臀| 日本韩国欧美一区| 中文字幕免费一区| 久99久精品视频免费观看| 欧美日韩免费高清一区色橹橹| 国产精品久久久久久亚洲伦| 青青国产91久久久久久| 欧美日韩一区二区三区在线| 中文字幕精品—区二区四季| 蜜桃视频在线一区| 欧美视频在线观看一区二区| 亚洲视频在线观看一区| 国产乱子伦视频一区二区三区 | 91国产福利在线| 亚洲视频一区在线观看| 国产成人鲁色资源国产91色综| 日韩午夜中文字幕| 视频一区二区不卡| 欧美美女bb生活片| 一区二区三区精密机械公司| 成人av资源下载| 国产精品毛片久久久久久| 在线亚洲+欧美+日本专区| 中文字幕一区在线观看| 成人久久视频在线观看| 久久久久久久精| 国产老肥熟一区二区三区| 制服丝袜亚洲播放| 亚洲成va人在线观看| 91高清视频在线| 亚洲综合色区另类av| 色网站国产精品| 亚洲午夜久久久久中文字幕久| 91国产福利在线| 亚洲大片在线观看| 91精品一区二区三区久久久久久| 丝袜美腿亚洲综合| 日韩免费观看高清完整版 | 9191成人精品久久| 日韩1区2区3区| 精品国产一区二区三区av性色| 人人狠狠综合久久亚洲| 久久影院视频免费| 不卡视频一二三四| 亚洲精品一二三区| 欧美日韩午夜精品| 麻豆一区二区99久久久久| 久久久91精品国产一区二区三区| 国产精品一区二区无线| √…a在线天堂一区| 日本精品视频一区二区三区| 亚洲成人一区在线| 欧美成人一区二区三区在线观看| 国内成人精品2018免费看| 中文字幕第一区综合| 欧美制服丝袜第一页| 奇米777欧美一区二区| 精品久久一区二区三区| 丰满少妇在线播放bd日韩电影| 国产精品卡一卡二卡三| 欧美日韩电影一区| 国产乱码精品一区二区三区av| 亚洲欧美综合色| 日韩一区二区精品在线观看| 国产成人免费视频网站 |