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

x
?
Solved

CControlBar/CToolBar : which side are they Docked to ?

Posted on 2000-03-06
1
Medium Priority
?
270 Views
Last Modified: 2013-11-20
I want to know which side (top, left etc.) are my CControlBars and Toolbars
are docked to ?
0
Comment
Question by:hasmet
[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
1 Comment
 

Accepted Solution

by:
jfhuang earned 400 total points
ID: 2589774
It is easy. Assume that you know the pointer of a toolbar, say pMyBar, do as follows:

  UINT nDockBarID = (pMyBar.GetParent())->GetDlgCtrlID();

then you can check the value of nDockBarID, it can be one of four values:
switch(nDockBarID ){
   case AFX_IDW_DOCKBAR_TOP:
     
   case AFX_IDW_DOCKBAR_BOTTOM:

   case AFX_IDW_DOCKBAR_LEFT:

   case AFX_IDW_DOCKBAR_RIGHT:
}
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

649 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