Menu

CReBar::SetBarInfo(REBARINFO& rbi) const sets wrong struct size and fails

Help
ioannis
2014-10-22
2014-10-23
  • ioannis

    ioannis - 2014-10-22

    inline BOOL CReBar::SetBarInfo(REBARINFO& rbi) const has an error setting the wrong struct size and fails

    ~~~~
    --- rebar.h Fri Oct 10 06:39:53 2014
    +++ P:/Win32++/include/rebar.h Wed Oct 15 04:32:14 2014
    @@ -522,7 +522,7 @@ namespace Win32xx
    {
    assert(::IsWindow(m_hWnd));

    • rbi.cbSize = GetSizeofRBBI();
    • rbi.cbSize = sizeof(REBARINFO);
      return (BOOL)SendMessage(RB_SETBARINFO, 0L, (LPARAM)&rbi);
      }
      ~~~~
     

    Last edit: ioannis 2014-10-22
  • David

    David - 2014-10-23

    Hi ioannis

    Thanks for making me aware of this. This problem didn't show up in my testing.

    I've updated to the code. The updated code can be downloaded using Tortoise SVN.

    Best regards,
    David

     

Log in to post a comment.