开发者

Locate DirectX viewport

开发者 https://www.devze.com 2023-01-23 05:37 出处:网络
How do I locate the coordinates and size of a DirectX game? My current code uses window sizes (user32.dll, GetWindowRect), which includes window chrome, but I want it to work accurately even if chrom

How do I locate the coordinates and size of a DirectX game?

My current code uses window sizes (user32.dll, GetWindowRect), which includes window chrome, but I want it to work accurately even if chrome is customized or if there is no chrome (e.g. fullscreen).

As an example, Fraps can create an overlay of the FPS of a game in a parti开发者_如何转开发cular corner. If I wanted to do that, how do I find that window viewport?

Thanks in advance for your insight.


There is a GetDisplayMode function.

0

精彩评论

暂无评论...
验证码 换一张
取 消