VC++ 6.0
Win2000

My application has a vertical CSplitterWnd (with a CView on one side and
a CListView on the other), and several toolbars which dock side-by-side
at the top (CBRS_ALIGN_TOP).  Users are able to drag any toolbar and
dock it underneath the other toolbars, causing two (or more) rows of
docked toolbars to appear at the top, instead of one row of docked
toolbars at the top.  When displayed as two rows of docked toolbars, the
height of the view below the toolbars is reduced by the height of one
toolbar.

When docked as two rows, the GetClientRect(&rect) call in the view to
returns an incorrect value for the height of the rect.  The height
returned is the height that the rect would be if the toolbar height
wasn't now taking up part of the view window.  In other words, the
height returned by the function call is larger than the actual displayed
height.  GetClientRect returns the correct height if the toolbars are
all in one row, only.

I would like to either:
a. Prevent the toolbars from being dragged into two (or more) rows.
Keep them all docked in one row at the top, or
b. Know how many rows of toolbars exist, so I can manually subtract the
extra height when necessary. (I guess I could get the screen rect of
every toolbar and determine how many rows exist by examining the y
values of each toolbar, but that seems unnecessarily difficult).

Or, if there are other ideas, I'm all ears.
 
TIA,
Jean Palmer
Northrop Grumman
> * [EMAIL PROTECTED]
> * (410-993-2627)
> 
> 

_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription 
changes, and list archive.

Reply via email to