Rebar problem
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
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);