![]() |
Show/Hide toolbar... it disappear :( |
Post Reply ![]() |
Author | |
Calabala ![]() Newbie ![]() Joined: 02 November 2008 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() 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 versaThe problem is :
The moment of toggling between the 2 cases, both of them disappear
![]() 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
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |