Print Page | Close Window

Show/Hide toolbar... it disappear :(

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=14004
Printed Date: 28 February 2025 at 2:57am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Show/Hide toolbar... it disappear :(
Posted By: Calabala
Subject: Show/Hide toolbar... it disappear :(
Date Posted: 14 April 2009 at 3:47am

I've 2 toolbars, vertical & horizontal.

according to certain condition I show one of them & hide the other, else I do vice versa
The problem is :
 
       The moment of toggling between the 2 cases, both of them disappear   & I don't know whyyyyyyyyyy
The thing which make me mad that when I debug, I find that it works exactly as I want
i.e. when the condition of being vertical is acheived, it sets the vertical toolbar "Show" & the horizontal one "Hide"
But although that, both of them disappear
 

CXTPToolBar* pToolBar = (CXTPToolBar*)pCommandBars->GetToolBar(IDR_VERT_PLAY_STOP_SLIDER_TOOLBAR);

pToolBar->SetVisible(TRUE);

pToolBar->ShowWindow(SW_SHOW);

pToolBar->Invalidate(TRUE);

pToolBar->UpdateWindow();

pToolBar->OnRecalcLayout();

pToolBar = (CXTPToolBar*)pCommandBars->GetToolBar(IDR_HORZ_PLAY_STOP_SLIDER_TOOLBAR);

pToolBar->SetVisible(FALSE);

pToolBar->ShowWindow(SW_HIDE);

pToolBar->Invalidate(TRUE);

pToolBar->UpdateWindow();

pToolBar->OnRecalcLayout();

Plzzzzzzzzzzzzzzzzz any help...
      Thanks in advance
            calabala



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