Print Page | Close Window

How to update the toolbar on time?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1412
Printed Date: 07 November 2025 at 3:22am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to update the toolbar on time?
Posted By: freehawk
Subject: How to update the toolbar on time?
Date Posted: 15 November 2004 at 1:17am

Hello

 I have some flag icons in toolbar, and in "OnUpdateMyMenu" these icons can be updated, but the updating speed is slow. I need to update them at all when some events happened. How to do ?

Thanks

-Freehawk




Replies:
Posted By: Oleg
Date Posted: 16 November 2004 at 3:26am

try to update them manually after event:

for (int i = 0; i < GetCommandBars()->GetCount(); i++)
 {
  CXTPToolBar* pToolBar = GetCommandBars()->GetAt(i);
  if (pToolBar->IsVisible())
  {
   pToolBar->OnIdleUpdateCmdUI(0, 0);
  }
 }



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


Posted By: freehawk
Date Posted: 16 November 2004 at 8:25pm

Thank you very much.

Just it.         haaaaaaaaaaaaaaaaaa

Originally posted by oleg oleg wrote:

try to update them manually after event:

for (int i = 0; i < GetCommandBars()->GetCount(); i++)
 {
  CXTPToolBar* pToolBar = GetCommandBars()->GetAt(i);
  if (pToolBar->IsVisible())
  {
   pToolBar->OnIdleUpdateCmdUI(0, 0);
  }
 }




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