请问您想实现什么功能需要获取此高度值?
我在DgnPrimitiveTool中用ViewPort的ViewToScreen方法将鼠标点转为屏幕坐标后,发现返回的坐标需要加上这个高度才是正确的显示屏坐标,所以想获取这个高度
When the Ribbon interface is used, to position popup windows and dynamics correctly, the global point requires a conversion to compensate for the height of the Ribbon.
This function converts the global point by increasing the point by the height of the Ribbon.
这是API文档中的一个函数,我的理解是:因为用了ribbon界面,所以需要对计算的屏幕坐标进行修正。因为调用这个函数比较麻烦,所以我想直接获取那个高度,然后自己计算。
是的。在加上一个判断。
if (mdlWindow_isGlobalPointConversionRequired (viewWindow->GetScreenNumber ()))
mdlWindow_globalPointConversionIncrease (&globlePoint, viewWindow, &pointInMDLclient);
Answer Verified By: Yongan.Fu
不知能否直接得那个高度,我再看看。感觉不可以。
我看了这个函数的实现,只是在不同窗口之间进行client, screen之间的转换,没有