Solved

Cdialogbar problem.

Posted on 1998-03-06
1
373 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

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

Suggested Solutions

Title # Comments Views Activity
sumDigits challenge 9 172
Doc'in system (example?) BA 7 120
Dell Alienware Graphics Amplifier Driver for non-Alienware systems 18 474
wordcount challenge 11 146
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

749 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