Alternative to GetClientRect?
I am monitoring DirectX application that is in windowed mode on Vista. GetClientRect reports correct size until application is minimized and restored the开发者_运维技巧n it always returns the preview size (106x160).
Is there any other way to query window for client area than use GetClientRect WinAPI? Perhaps sending message to the window, or checking what Windows knows about window client area?
Any help would be appreciated and if you can use C# or .NET it would be a bonus but any other language would do
I think you should not call GetClientRect when the application is minimized because it does not make much sense, there is not client area visible at all when minimized.
look here: How could I detect when my application is minimized? there is of course a way to detect when a window is minimized so you can avoid using GetClientRect
in that case.
精彩评论