?
Solved

CControlBar/CToolBar : which side are they Docked to ?

Posted on 2000-03-06
1
Medium Priority
?
268 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

764 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