开发者

ToolBar Gets Misaligned in Release Build

开发者 https://www.devze.com 2022-12-14 17:54 出处:网络
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 Control

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开发者_StackOverflow 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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号