2 Begin VB.Form SearchDocs
\r
3 BorderStyle = 3 'Fixed Dialog
\r
4 Caption = "Looking for Files"
\r
9 ControlBox = 0 'False
\r
11 MaxButton = 0 'False
\r
12 MinButton = 0 'False
\r
15 ShowInTaskbar = 0 'False
\r
17 Begin VB.CommandButton AbortScan
\r
20 CausesValidation= 0 'False
\r
27 Begin VB.Label Label5
\r
36 Begin VB.Label Label4
\r
37 Caption = "gefundene Dokumente:"
\r
44 Begin VB.Label Label3
\r
52 Begin VB.Label Label2
\r
60 Begin VB.Label Label1
\r
69 Attribute VB_Name = "SearchDocs"
\r
70 Attribute VB_GlobalNameSpace = False
\r
71 Attribute VB_Creatable = False
\r
72 Attribute VB_PredeclaredId = True
\r
73 Attribute VB_Exposed = False
\r
76 Private Declare Function GetTickCount Lib "kernel32" () As Long
\r
78 Private Const C_MIN_WAIT_TIME As Long = 1000
\r
79 Private Const C_MIN_UPDATE_TIME As Long = 100
\r
81 Private g_SD_StartTime As Long
\r
82 Private g_SD_LastUpdate As Long
\r
84 Public g_SD_Abort As Boolean
\r
86 Private Sub Form_Load()
\r
89 g_SD_StartTime = GetTickCount()
\r
90 g_SD_LastUpdate = g_SD_StartTime
\r
92 SearchDocs.Visible = False
\r
93 SearchDocs.Caption = GetResString(SEARCH_CAPTION)
\r
95 Label3.Caption = GetResString(SEARCH_PATH_LABEL)
\r
96 Label4.Caption = GetResString(SEARCH_FOUND_LABEL)
\r
97 Label5.Caption = GetResString(SEARCH_INFO_LABEL)
\r
100 Public Sub SD_UpdateProgress(curObject As String, curParent As String)
\r
102 Dim currTicks As Long
\r
103 currTicks = GetTickCount()
\r
105 If (Not SearchDocs.Visible) Then
\r
106 If (currTicks - g_SD_StartTime > C_MIN_WAIT_TIME) Then
\r
107 SearchDocs.Visible = True
\r
110 If (currTicks - g_SD_LastUpdate > C_MIN_UPDATE_TIME) Then
\r
111 g_SD_LastUpdate = currTicks
\r
112 Label1.Caption = curParent
\r
113 Label2.Caption = curObject
\r
117 Private Sub AbortScan_Click()
\r
121 Private Sub Form_Deactivate()
\r
122 SearchDocs.ZOrder (0)
\r