发现之前我博客里提到的 Win10 Aero 未公开 API 更新了,加入了亚克力模糊。我已经更新了 Gist。
https://blog.ysc3839.com/archives/2017/10/win10-aero-undocumented-api.html
https://disq.us/p/1wa6kh1
https://withinrafael.com/2018/02/01/adding-acrylic-blur-to-your-windows-10-apps-redstone-4-desktop-apps/
https://blog.ysc3839.com/archives/2017/10/win10-aero-undocumented-api.html
https://disq.us/p/1wa6kh1
https://withinrafael.com/2018/02/01/adding-acrylic-blur-to-your-windows-10-apps-redstone-4-desktop-apps/
https://t.iss.one/kirin_no_manimani/1996
我自己是不喜欢烫餐具的,主要是懒。不过如果是没有封口的,从柜子里拿出来的餐具,我还是会烫一下,有封口的不会烫。
我自己是不喜欢烫餐具的,主要是懒。不过如果是没有封口的,从柜子里拿出来的餐具,我还是会烫一下,有封口的不会烫。
Telegram
綺凜的随波逐流
作为一个广东人,吃饭前不烫餐具就跟煮饭前不洗米一样
Forwarded from Milkice's 生而陌路
利用 Android for work 实现各项特性的软件 Island 现已开源
https://github.com/oasisfeng/island
https://github.com/oasisfeng/island
GitHub
GitHub - oasisfeng/island: Island for Android
Island for Android. Contribute to oasisfeng/island development by creating an account on GitHub.
Forwarded from Programmer Humor
Forwarded from Richard Yu
https://tech.justf.space/2018/06/17/Windows-activation-HWID/ 这方法在 Win10 Insider 18252 仍然有效……我估计微软到现在也没关闭 Win7 免费升级的渠道。
在网上发现了一个叫 Win7 Style Builder 的软件,可以直接查看 Windows 主题的内部数据。可以说懂了一点 Windows 主题的机制。
首先各位可能知道用
主题文件中有控件对应的资源,比如 ListView 对应的是 "ListView",用了 SetWindowTheme 之后,就会变成 "Explorer::ListView"。
而在 Win10 1809 里加入了 Win32 下的 DarkMode,其实只是多了一层处理,如果对窗口启用了 DarkMode 的话,"Explorer::ListView" 就会变成 "DarkMode_Explorer::ListView"。
经测试,直接通过
首先各位可能知道用
SetWindowTheme(hWnd, L"Explorer", nullptr) 可以让 ListView 和 TreeView 开启资源管理器的那种新的主题。主题文件中有控件对应的资源,比如 ListView 对应的是 "ListView",用了 SetWindowTheme 之后,就会变成 "Explorer::ListView"。
而在 Win10 1809 里加入了 Win32 下的 DarkMode,其实只是多了一层处理,如果对窗口启用了 DarkMode 的话,"Explorer::ListView" 就会变成 "DarkMode_Explorer::ListView"。
经测试,直接通过
SetWindowTheme(hWnd, L"DarkMode_Explorer", nullptr) 也是可以开启 DarkMode 的。https://t.iss.one/milkice_portal/385
我认为恢复分区有用,MSR 分区没用。
另外,我装黑苹果都是用一块单独的硬盘安装的,不存在上述问题。
macOS 的恢复分区我也会保留。
我认为恢复分区有用,MSR 分区没用。
另外,我装黑苹果都是用一块单独的硬盘安装的,不存在上述问题。
macOS 的恢复分区我也会保留。
Telegram
Milkice's Portal
几点建议:
1. 不要用 Windows 安装盘自带的分区工具 MS 常年乱写分区表
2. 恢复分区没啥用 丢了吧
3. MSR 分区也没啥用(有特殊用途除外) 丢了吧
4. EFI 分区还是自己用 diskpart 建得大一点 500M为佳 Windows默认的100M太蠢了
1. 不要用 Windows 安装盘自带的分区工具 MS 常年乱写分区表
2. 恢复分区没啥用 丢了吧
3. MSR 分区也没啥用(有特殊用途除外) 丢了吧
4. EFI 分区还是自己用 diskpart 建得大一点 500M为佳 Windows默认的100M太蠢了
C++11 开始,std::string 可以直接用作缓冲区,不需要用另外一块空间保存,然后再拷贝到 std::string 中。
https://stackoverflow.com/a/39200666
在 C++11/14 中可以使用
https://stackoverflow.com/a/39200666
在 C++11/14 中可以使用
&str.front() 或 &str[0] 来获取地址,C++17 中 str.data() 加入了非 const 的重载,可以直接用 str.data() 来获取地址。str.size() 是缓冲区的长度,可以用 str.resize(length) 分配空间。Stack Overflow
Directly write into char* buffer of std::string
So I have an std::string and have a function which takes char* and writes into it. Since std::string::c_str() and std::string::data() return const char*, I can't use them. So I was allocating a tem...
Forwarded from Richard Yu
Windows 10 now enables you to use UWP controls in non-UWP desktop applications so that you can enhance the look, feel, and functionality of your existing desktop applications with the latest Windows 10 UI features that are only available via UWP controls.
https://docs.microsoft.com/en-us/windows/uwp/xaml-platform/xaml-host-controls
好耶!
https://docs.microsoft.com/en-us/windows/uwp/xaml-platform/xaml-host-controls
好耶!
Docs
UWP controls in desktop applications - Windows UWP applications
This guide helps you to create Fluent-based UWP UIs directly in your WPF and Windows Forms applications
Forwarded from Richard Yu
"Starting in Windows 10 Insider Preview SDK build 17709"
也就是说 1809 已经可以用了。
也就是说 1809 已经可以用了。