封装一些常用的 win api
// 返回资源管理当前打开的文件夹地址
static QString getExplorerCurrentPath();
// 返回资源管理当前打开的所有文件夹地址
static QStringList getExplorerALLPath();
/* *ShellExecuteExW 执行,省去编码转换,运行后返回hInstApp的结果。
path 路径
arameters 参数
directory 程序目录
runas 是否管理员
*/
static int VShellExecuteExW(const QString &path, const QString ¶meters = QString(), const QString &directory = QString(), bool runas = false);
// 设置或者取消 窗体置顶,内置了QT自带的方法和 win32 api 两种方式
static void setWindowStaysOnTop( QWidget *widget, bool bTop, bool useWinApi = false );
// 鼠标穿透 鼠标的点击将穿过界面 到后面的窗口
static void setWindowThrough( QWidget *widget, bool bThrough = true );