Thread: Status bar and toolbar positioning

  1. #1
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,273

    Exclamation Status bar and toolbar positioning

    Hi,
    I've made a window, which has a status bar and a toolbar on it, with the toolbar aligned to the bottom of the window. However, the status bar clearly dislikes it intruding on its turf and overlaps it, so I can only see the top of the buttons. Is there a way I can get them to play nicely with each other and align themselves one above the other?

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    32
    Okay now this solution may not work, it's just a suggestion. What I believe you have to do is determine the new size of the window (the mid area between side to side (left boundary of window to right boundary of window) and top to bottom (bottom of menu's to top of your toolbar)) Once you have that I believe you have to tell the scrollbar this information somehow. I can't tell you exactly how to do that, but I believe it can be done. I think I read it somewhere a while back.

    HTH
    cerion
    Use the code Luke.

  3. #3
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,273

    Unhappy

    Bah, I've tried using GetWindowRect to get the toolbar coords after it resized itself (in my parent window's WM_SIZE code) and then using MoveWindow with the top and bottom reduced by 24 pixels, but then it just disappears of the face of the Earth. Ho hum....

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    32
    Well okay. That was all I could suggest for now. I will look into it further and if I find anything I will give ya a PM or reply to this topic.
    cerion
    Use the code Luke.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. cannot insert toolbar into rebar
    By supernater in forum Windows Programming
    Replies: 1
    Last Post: 06-02-2009, 03:35 AM
  2. toolbar button question
    By supernater in forum Windows Programming
    Replies: 1
    Last Post: 05-25-2009, 08:24 PM
  3. Putting Images In The Toolbar
    By blueterry in forum Windows Programming
    Replies: 0
    Last Post: 06-30-2007, 10:49 AM
  4. Dockable Toolbar (Like taskbar or office toolbar)
    By om3ga in forum Windows Programming
    Replies: 2
    Last Post: 11-20-2005, 03:09 AM
  5. Adding user drawn bitmaps to an existing toolbar
    By korbitz in forum Windows Programming
    Replies: 4
    Last Post: 04-06-2004, 04:16 PM