Solved

CControlBar/CToolBar : which side are they Docked to ?

Posted on 2000-03-06
1
261 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 100 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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.

737 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