Visual Studio 对话框编辑器不使用方形尺寸

发布于 2024-08-25 11:55:29 字数 698 浏览 10 评论 0原文

所以,我正忙着制作一个模型查看器,我正在尝试正确设置我的对话框,并让我的 openGL 视图端口平方(我正在使用它的图片框控件),一个问题。 Visual Studio不允许我手动设置大小,我看不到实际的像素大小。我只能在屏幕的右下角看到它,但那是对话框单位而不是像素单位,不知何故搞砸了。

例如,看这里,根据 Visual Studio,所选的东西应该是正方形,你可以看到在右下角它说“170 x 170”,但你可以清楚地看到它远不近正方形,我什至可以通过运行我的应用程序来测试它,openGL渲染被压扁并且看起来不正确,因为事情没有被平方:

屏幕截图: http://i42.tinypic.com/xpsepf.jpg

因为我无法设置我还尝试过在其他资源编辑器中打开/编辑 .rc,但 Visual Studio 使用自己的压缩类型保存它,这使得任何其他工具无法打开该文件,我'我尝试过ResourceHacker、ResourceTuner、Restorator、XYExplorer,甚至我之前用于模型查看器的WinASM资源编辑器,都无法打开该文件。

有谁知道或知道视觉工作室中的一个选项,以便我可以看到它的宽度和高度..?例如,如果我在 WinASM studio 中创建一个对话框,我就可以。VisualStudio 应该支持这一点。

So, I'm busy making a model viewer, I'm trying to get my dialog properly setup, and get my openGL view ports squared ( I'm using picture box controls for it ), one big problem. Visual studio doesn't allow me to set the the size manually, I can't see the actual pixel size. I can only see it in the bottom right corner of the screen but that's in dialog units not in pixel units and somehow that screw up terribly..

Look here for example, that selected thing should be a square according to visual studio, you can see in the bottom right corner it says "170 x 170" but you can clearly see it's nowhere near square, I can even test it by running my application, the openGL render gets squashed up and doesn't look right cause of the thing not being squared:

Screenshot:
http://i42.tinypic.com/xpsepf.jpg

Because I can't set it by hand I can't get it right.. I've also tried opening/editing the .rc in other resource editors but visual studio saves it with it's own type of compression which makes any other tool unable to open the file, I've tried ResourceHacker, ResourceTuner, Restorator, XYExplorer and even the WinASM resource editor which I used for my previous model viewer, all are unable to open the file.

Does anybody have an idea or know about an option in visual studio so I can see it's width and height..? I can if I make a dialog in WinASM studio for example.. VisualStudio should support this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

月隐月明月朦胧 2024-09-01 11:55:29

资源编辑器以 DLU(对话框逻辑单元)工作,而不是以像素为单位。

请参阅另一个问题(以及包含的链接):MFC 对话框大小问题

The resource editor works in DLU ( Dialog Logical Unit), not in pixels.

see this other question (and links included) : MFC Dialog Size Question

Max.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文