Solved

Cdialogbar problem.

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
ADO Memory leak with DELPHI 2007 37 155
repeatSeparator  java  challenge 13 56
not able to insert into temp table 68 150
Making an alias 7 52
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 …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now