Solved

CDialogBar class

Posted on 1998-11-09
2
279 Views
Last Modified: 2013-11-20
I created a dialog bar and template for it and I can display it just fine, but how do I make it like the traditional tool bar that the user can grab with the mouse and move it to any part of the screen. I also am having difficulty in getting it to disapear using a menu item. my code is similar to this.
CDialogBar * CustomBar = new CDialogBar;
CustomBar->Create(this,....,....,....);
CustomBar->EnableDocking(SW_ALIGN_ANY);
EnableDocking(SW_ALIGN_ANY);

BOOL IS_VISIBLE = (CustomBar->GetStyle() & SW_SHOWNORMAL);
int IS_SHOWING = (IS_VISIBLE) ? SW_HIDE SW_SHOWNORMAL);
CustomBar->ShowWindow(IS_SHOWING);

This fails to work correctly, is there another function that will tell me the visibility state of this dialog bar?
0
Comment
Question by:backdraf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:backdraf
ID: 1324407
Edited text of question
0
 
LVL 9

Accepted Solution

by:
Priyesh earned 50 total points
ID: 1324408
void CMainFrame::OnViewToolbar()
{
  if(m_AudioCtrlBar.IsWindowVisible()==FALSE)      
       (m_AudioCtrlBar.GetParentFrame())->ShowControlBar((CControlBar *)&m_AudioCtrlBar,true,false);      
  else
     (m_AudioCtrlBar.GetParentFrame())->ShowControlBar((CControlBar *)&m_AudioCtrlBar,false,false);      
}

Use code like the above instead..
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question