Print Page | Close Window

MenuBar & Add/Remove & Redraw

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=4896
Printed Date: 04 October 2024 at 1:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MenuBar & Add/Remove & Redraw
Posted By: jimmy
Subject: MenuBar & Add/Remove & Redraw
Date Posted: 28 August 2006 at 5:46am
Hello,

We have changed from 9.81 to 10.3.0.
Now we have a redraw problem after remove/add a control to menubar.

    CXTPCommandBar* pMenuBar = pCommandBars->GetMenuBar();
    CXTPControls* pMenuControls = pMenuBar->GetControls();

if (a)
  pMenuControls->Remove(s_pOldMenu);
else
  s_pOldMenu = pMenuControls->Add(xtpControlPopup, nID, "", 2);

Bug or feature ?
Best solution ?

With this , it will work
    if (pMenuBar)
        pMenuBar->Redraw();

    Jimmy




Replies:
Posted By: Oleg
Date Posted: 28 August 2006 at 8:04am
Hello,
yes bug of 10.3.0, fixed in 10.3.1
:(


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net