Solved

CControlBar/CToolBar : which side are they Docked to ?

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Suggested Solutions

Title # Comments Views Activity
Question regarding Copy/Paste 16 96
Separate into files by filename 12 87
iSeries DB2 Query 2 97
no14 challenge 14 72
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.

831 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