如何获得dwm扩展和最大化窗口的顶部框架高度? [英] How to get the top frame height of a dwm extended and maximized window?

查看:89
本文介绍了如何获得dwm扩展和最大化窗口的顶部框架高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用dwmextendframeintoclientarea创建了一个窗口,一切正常,除了顶部框架高度小于我在窗口最大化时确定的值。


$
因此,使用drawthemetext绘制的文本将不会与绝对垂直中心对齐,如下图所示。







第一个是标题栏,而窗口是正常尺寸,而第二个窗口是最大化的。



这是因为顶部框架的高度实际上是小于我在DwmExtendFrameIntoClientArea中设置的值。


$
问题是如何在启用dwm且窗口最大化的情况下获得顶部框架的实际高度?

解决方案

您好,
欢迎光临。


根据您的描述,我将把这个帖子移到一个更合适的论坛:Windows桌面SDK。


感谢您的理解。

问候,


I created a window using dwmextendframeintoclientarea, everything is ok except the top frame height is less than the value I settled while the window is maximized.

So the text drawn using drawthemetext will not align absolutly vertical center as following picture shows.


the first one is the caption bar while the window is normal size, while the second window is maximized.

It is because the height of the top frame actually is less than the value I setted in DwmExtendFrameIntoClientArea.

The problem is how could I get the real height of the top frame while dwm is enable and the window is maximized?

解决方案

Hello,
Welcome here.

Based on your description, I will move this thread to a more appropriate forum: Windows Desktop SDK.

Thanks for your understanding.
Regards,


这篇关于如何获得dwm扩展和最大化窗口的顶部框架高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆