Solved

Cdialogbar problem.

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

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