Ai
0 Star 1 Fork 1

cm.wang/MDINotepad

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
FileSearch.bi 2.05 KB
一键复制 编辑 原始数据 按行查看 历史
Cm Wang 提交于 2024-09-20 11:12 +08:00 . Add files via upload
#pragma once
' FileAct 文件处理
' Copyright (c) 2024 CM.Wang
' Freeware. Use at your own risk.
#include once "FileAct.bi"
Type FilesSearch
Private:
'私有变量
Const mFileInc As Integer = &hfffff
'私有函数
Declare Static Function FindThread(ByVal pParam As Any Ptr) As Any Ptr
Declare Sub FindDoing()
Public:
mCancel As Integer
mDone As Integer
mFileCount As LongInt = -1
mFiles(Any) As WString Ptr
mFileSize As LongInt = 0
mFilter(Any) As WString Ptr
mFilterCount As LongInt = 0
mFilters As WString Ptr = 0
mOwner As Any Ptr = 0
mPathCount As LongInt = -1
mPaths(Any) As WString Ptr
mRootPath(Any) As WString Ptr
mRootPathCount As LongInt = 0
mRootPaths As WString Ptr = 0
mSubDir As Integer = False
mThread As Any Ptr '线程ID
mTmpFiles As WString Ptr = 0
mTmpPaths As WString Ptr = 0
mFindType As Integer = 0
Declare Sub ListFile(ByRef pathroot As Const WString, ByVal FilterIndex As Integer)
Declare Sub ListPath(ByRef pathroot As Const WString, ByVal FilterIndex As Integer)
Declare Sub ListFilePath(ByRef pathroot As Const WString, ByVal FilterIndex As Integer)
Public:
'构造与析构函数
Declare Constructor
Declare Destructor
'枚举完成事件
OnFindDone As Sub(Owner As Any Ptr)
Declare Function Files(ByRef SplitStr As WString) ByRef As WString
Declare Function FindFile(Owner As Any Ptr, rootpaths As WString, filters As WString, ByVal subDir As Integer = False, ByVal FindType As Integer = 0) As Integer
Declare Function Paths(ByRef SplitStr As WString) ByRef As WString
Declare Property Cancel() As Integer
Declare Property Cancel(ByVal nVal As Integer)
Declare Property Done() As Integer
Declare Property File(ByVal Index As Integer) ByRef As WString
Declare Property FileCount() As Integer
Declare Property FileSize() As LongInt
Declare Property Path(ByVal Index As Integer) ByRef As WString
Declare Property PathCount() As Integer
Declare Sub Clear(ByVal Index As Integer = False)
End Type
#ifndef __USE_MAKE__
#include once "FileSearch.bas"
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cm-wang/MDINotepad.git
git@gitee.com:cm-wang/MDINotepad.git
cm-wang
MDINotepad
MDINotepad
main

搜索帮助