BorderlessWindow
================
This sample application demonstrates the necessary WinAPI calls and window
messages to handle to produce a resizable, borderless window (similar to Steam, GitHub for Windows).
![sample](https://cloud.githubusercontent.com/assets/3340026/20039089/69b3b2f6-a43e-11e6-8a44-21599a34ceba.png)
The borderless window can be resized, moved, and also supports all the Aero features a regular window has:
- snapping to desktop halves/quadrants
- shake to minimize all other windows
- animations when minimizing, maximizing, restoring, snapping
- native soft shadow around the window
The sample should work on Windows 7, 8/8.1 and 10.
What this example does *not* do:
- Draw anything to the client area. You will need to fill the entire window with an opaque color, or the window frame may be visible inside your client area in borderless mode.
In my use case I simply fill the D3D backbuffer covering the window's client area.
- Calculate proper client/window size in windowed mode. You will need to use [AdjustWindowRect](https://msdn.microsoft.com/en-us/library/windows/desktop/ms632665(v=vs.85).aspx) and friends to calculate the correct window size for a desired client area size.
Keybinds:
- F8 enables/disables dragging in the borderless window to move it
- F9 enables/disables resizing the borderless window
- F10 toggles between borderless and windowed mode
- F11 toggles the aero shadow when in borderless mode
没有合适的资源?快使用搜索试试~ 我知道了~
基于C++的无边框窗体阴影绘制方案
共37个文件
tlog:7个
json:4个
command:2个
需积分: 0 0 下载量 153 浏览量
2023-08-11
18:20:37
上传
评论
收藏 8.65MB RAR 举报
温馨提示
基于C++的无边框窗体阴影绘制方案
资源推荐
资源详情
资源评论
收起资源包目录
BorderlessForm(C++).rar (37个子文件)
BorderlessForm(C++)
.vs
BorderlessWindow
v17
Browse.VC.db 44.29MB
.suo 26KB
FileContentIndex
1c9d513a-dc2d-4160-80b7-f26a08c3dafb.vsidx 31KB
BorderlessWindow
BorderlessWindow.vcxproj 9KB
src
BorderlessWindow.cpp 9KB
main.cpp 413B
BorderlessWindow.hpp 1014B
bin
Debug
x64
BorderlessWindow.pdb 1.52MB
BorderlessWindow.exe 115KB
build
Debug
x64
vc143.pdb 396KB
std.ixx.ifc.dt.d.json 28KB
BorderlessWindow.log 298B
std.compat.ixx.ifc.dt.module.json 324B
std.ixx.ifc.dt.module.json.command 4KB
BorderlessWindow_MD.tlog
BorderlessWindow.ilk 1019KB
std.compat.ixx.ifc.dt.d.json 320B
vc143.idb 587KB
BorderlessWindow.tlog
CL.write.1.tlog 2KB
Cl.items.tlog 774B
BorderlessWindow.lastbuildstate 280B
CL.command.1.tlog 2KB
link.command.1.tlog 2KB
link.read.1.tlog 5KB
link.write.1.tlog 1KB
CL.read.1.tlog 77KB
std.ixx.ifc.dt.module.json 281B
BorderlessWindow.vcxproj.FileListAbsolute.txt 0B
BorderlessWindow.exe.recipe 445B
BorderlessWindow.obj 364KB
BorderlessWindow.Build.CppClean.log 0B
std.compat.ixx.ifc.dt.module.json.command 4KB
main.obj 92KB
BorderlessWindow.vcxproj.filters 1KB
BorderlessWindow.vcxproj.user 168B
.gitignore 3KB
BorderlessWindow.sln 1KB
README.md 1KB
共 37 条
- 1
资源评论
lzhdim
- 粉丝: 927
- 资源: 1108
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功