[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

CDialogBar class

Posted on 1998-11-09
2
Medium Priority
?
289 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 100 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

656 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