Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Cdialogbar problem.

Posted on 1998-03-06
1
Medium Priority
?
401 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 100 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

618 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