How to control CRebar band width?

Posted on 2009-02-13
Last Modified: 2013-11-20
In my project, 4 same dialog box are placed inside a CRebar control. The display is like below
|    1      |      2     |      3    |              4                 |.

I do not want the last dialogbox stretches & occupies all the unused space of CRebar control.
|     1     |      2     |       3    |        4      |       empty         |

Could anyone help?
Question by:exsylhs
    LVL 2

    Assisted Solution

    How about if you set property RBBS_FIXEDSIZE to the Rebar?

    Author Comment

    I tried, but it does not work. Anythg else I could try?

    Author Comment

    Hi Moderator,

    Do you mean I shall paste up my sample code? Besides this, I do not think I got extra info I can fill up because I think my question spells out my problem clearly. I even drew out the output that I wish to have.


    Accepted Solution

    Hi all,

    I have found a solution to solve this question.
    Instead of using multiple band within one CRebar control, I change to use Multiple CRebar Control with only one band. And the output display is what I have expected.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
    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.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    754 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

    21 Experts available now in Live!

    Get 1:1 Help Now