Solved

Cdialogbar problem.

Posted on 1998-03-06
1
387 Views
Last Modified: 2013-11-20
I already have a standard Ctoolbar on my sdi window that ocupies half of the toolbar space, Now I want another Cdialogbar( because i want a few Buttons, and a custom Control on it) to be placed exactly in the unused tool bar arearea, but the dialogbar goes Below the toolbar, not next to it. also it is not dockable, though i did enabledocking(CBRS_ALIGN_ANY).Also the two buttons are disabled. I dont know why?
could any body help me get the dialog bar next to the toolbar
0
Comment
Question by:sreek2
[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
 
LVL 1

Accepted Solution

by:
chacko earned 50 total points
ID: 1316807
To align the dialogbar next to tool bar, you need to calculate the rectangle(left,right,top,bottom - left = right of tool bar + 2 pixels) of dialog bar and set the position. Use function like getclientrect of the CToolbar.

The buttons disabled is because of wrong IDs or you do not have ON_COMMAND for the buttons. If still does not work, you have to do idel time enablingg for these buttons.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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…
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 …
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.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

691 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