Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Rebar problem

Rebar problem

Scheduled Pinned Locked Moved C / C++ / MFC
phphelplearning
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Maarten Kools
    wrote on last edited by
    #1

    Hi. I'm implementing a rebar in my application, and I'm adding three dialogs from a resource template. All of these are fairly small, and I'd like 'em to be aligned all the way to the left. Now, the problem is, the first band.. wait, let me go from the right to the left, it's easier. The last and middle dialog are the right sizes. But the first one is aligned left, then fills up all the space until the next two dialogs, here's a picture: Picture This is the code used to create the rebar and each of the bands:

    // Create the toolbars
    m\_wndReBar.Create( this);
    m\_wndDocTools.Create( CDocumentTools::IDD, &m\_wndReBar);
    m\_wndDocInfo.Create( CDocumentInfo::IDD, &m\_wndReBar);
    m\_wndDocView.Create( CDocumentView::IDD, &m\_wndReBar);
    
    m\_wndReBar.AddBar( &m\_wndDocTools, NULL, NULL, RBBS\_FIXEDSIZE | RBBS\_FIXEDBMP);
    m\_wndReBar.AddBar( &m\_wndDocInfo, NULL, NULL, RBBS\_FIXEDSIZE | RBBS\_FIXEDBMP);
    m\_wndReBar.AddBar( &m\_wndDocView, NULL, NULL, RBBS\_FIXEDSIZE | RBBS\_FIXEDBMP);
    
    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups