简体   繁体   English

如何在Win32 API中检测功能区栏的坐标

[英]How to detect coordinates of Ribbon bar in Win32 API

I'm making an application in Win32 API that uses the modern Ribbon style UI. 我正在Win32 API中制作一个使用现代功能区样式UI的应用程序。 I've successfully tested an SampleRibbon program. 我已经成功测试了SampleRibbon程序。 The only problem I'm having is that, How to detect the X and Y coordinates of the Ribbon bar? 我唯一的问题是, 如何检测功能区栏的X和Y坐标? When I draw a control at (0,0) it gets hidden behind the Ribbon bar. 当我在(0,0)处绘制控件时,它隐藏在功能区栏的后面。 But I don't want it to be hidden behind the bar. 但是我不希望它藏在酒吧后面。 Is there any function to get the coordinates of the Ribbon bar so that I can draw the control automatically below the Ribbon. 是否有任何功能可获取功能区栏的坐标,以便我可以在功能区下方自动绘制控件。

您正在寻找的功能是IUIRibbon::GetHeight

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM