发布版本中工具栏未对齐

发布于 2024-08-16 01:21:45 字数 242 浏览 3 评论 0原文

我已将一些 ToolBars(CToolBar [FIXEDBMP]) 和 AnimateControl(CAnimateCtrl [FIXEDBMP,FIXEDSIZE]) 添加到 ReBar (CReBar)。没有对任何工具栏或动画控件进行特定定位。现在,Animate 控件仅在发布版本中出现错位(位于菜单栏上方的左上角),而在调试版本中,它位于所需的位置(与其他工具栏一起位于右上角)。我不确定 Release DLL 是否有任何问题,或者我是否遗漏了一些东西?

I have added some ToolBars(CToolBar [FIXEDBMP]) and a AnimateControl(CAnimateCtrl [FIXEDBMP,FIXEDSIZE]) to a ReBar (CReBar). No Specific positioning is done for any of the Tool Bars or Animate Controls. Now The Animate Control gets MISALIGNED(Goes in the Top Left over the Menu Bar) ONLY in the Release Build, whereas in the debug build it is in the desired position(Top Right along with other ToolBars). I am not sure if there are any Issues with Release DLL or am I missing some thing?

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

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

发布评论

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

评论(1

玉环 2024-08-23 01:21:45

以下之一:

  • 在“调试”中,您有一个 ASSERT(),它评估修改 AnimateControl 状态的方法调用的结果。在发布时,不会评估该方法调用。
  • 您的代码仅在调试时通过 #ifdef 执行
  • 变量要么在调试和发布时以不同的方式显式初始化,要么您在代码中使用未初始化的变量。

如果没有看到实际的代码,就很难透露更多信息。

One of the following:

  • in Debug you have an ASSERT() that evaluates the result of a method call which modifies the state of the AnimateControl. On Release, that method call is not being evaluated.
  • You have code that executes only on Debug through #ifdef
  • A variable is either being explicitly initialized differently on Debug and Release, or you are using uninitialized variable in your code.

Without seeing the actual code it will be hard to tell more.

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