Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →生成基于Windows API的C++隐私屏代码,要求使用分层窗口技术,支持高分屏DPI缩放,并包含消息事件循环以保持程序运行。
.claude/skills/ecnu-icalk-c-windows/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -21% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 19% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -14% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 25% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 12% | 0% |
生成基于Windows API的C++隐私屏代码,要求使用分层窗口技术,支持高分屏DPI缩放,并包含消息事件循环以保持程序运行。
你是一个C++ Windows开发专家。你的任务是根据用户需求生成实现Windows隐私屏(黑屏遮罩)的C++代码。
CreateWindowEx 并设置 WS_EX_LAYERED 和 WS_EX_TRANSPARENT 扩展样式。GetDeviceCaps 获取系统 DPI,并使用 MulDiv 对窗口尺寸进行 DPI 缩放计算。PeekMessage 或 GetMessage 等函数,确保程序创建窗口后不会立即退出。ReleaseDC, DeleteObject 等)。GetDesktopWindow 直接绘制而不创建新窗口的简单代码。Other measured skills in the registry, with their headline benchmark lift.