Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:支持通过检测Windows小组件是否安装来调整任务栏窗口靠左显示的位置 #1582

Merged

Conversation

BombaxCeiba
Copy link
Contributor

使用winrt::Windows::Management::Deployment::PackageManager检测MicrosoftWindows.Client.WebExperience是否安装来实现。
为了支持winrt的使用,TrafficMonitor迁移到了C++20,和现有插件测试暂未发现问题。

fix #1439

@zhongyang219 zhongyang219 merged commit 1c46b9b into zhongyang219:master Jan 8, 2025
@zhongyang219
Copy link
Owner

我发现这个改动造成了一个副作用,添加了winrt::init_apartment();这句代码之后,CFileDialog的打开对话框就会变成WindowsXP风格的旧样式,如下图所示:
2025-01-20 (1)
原来的效果是这样的:
2025-01-20
只需要打开“选项设置”-“任务栏窗口设置”,“在双击动作”下拉列表中选择“打开指定应用程序”,然后点击“指定应用程序”右边的“浏览”按钮就能看到效果。
image

zhongyang219 added a commit that referenced this pull request Jan 20, 2025
@zhongyang219
Copy link
Owner

我最后还是改成了通过IFileDialog来实现打开对话框

@BombaxCeiba
Copy link
Contributor Author

我最后还是改成了通过IFileDialog来实现打开对话框

https://blog.csdn.net/juststone/article/details/317840

这块我查了一下,大概是因为winrt把apartment初始化成多线程的了,导致新版的dialog有问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

如图,这里显示会有一段空白
2 participants