Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Show/Hide toolbar... it disappear :(
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Show/Hide toolbar... it disappear :(

 Post Reply Post Reply
Author
Message
Calabala View Drop Down
Newbie
Newbie


Joined: 02 November 2008
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Calabala Quote  Post ReplyReply Direct Link To This Post Topic: Show/Hide toolbar... it disappear :(
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.