Use new CNavCenterScroller and tell it to adjust the scroll bar when the column headers appear or disappear.

This commit is contained in:
pinkerton%netscape.com 1998-08-28 20:33:42 +00:00
Родитель d3bcc12650
Коммит 7005ee67fd
2 изменённых файлов: 11 добавлений и 1 удалений

Просмотреть файл

@ -39,6 +39,7 @@
#include "CRDFCoordinator.h"
#include "CHyperTreeFlexTable.h"
#include "CNavCenterScroller.h"
#include "CNavCenterTitle.h"
#include "UGraphicGizmos.h"
@ -182,6 +183,10 @@ CRDFCoordinator :: ShowColumnHeaders ( )
mTreePane->MoveBy ( 0, columnHeaderFrame.height, false );
mTreePane->ResizeFrameBy ( 0, -columnHeaderFrame.height, false );
CNavCenterScroller* scroller = dynamic_cast<CNavCenterScroller*>(FindPaneByID(kScrollerPaneID));
if ( scroller )
scroller->ColumnHeadersChangedVisibility ( true, columnHeaderFrame.height );
} // ShowColumnHeaders
@ -200,6 +205,10 @@ CRDFCoordinator :: HideColumnHeaders ( )
mTreePane->MoveBy ( 0, -columnHeaderFrame.height, false );
mTreePane->ResizeFrameBy ( 0, columnHeaderFrame.height, false );
CNavCenterScroller* scroller = dynamic_cast<CNavCenterScroller*>(FindPaneByID(kScrollerPaneID));
if ( scroller )
scroller->ColumnHeadersChangedVisibility ( false, columnHeaderFrame.height );
} // HideColumnHeaders

Просмотреть файл

@ -87,7 +87,8 @@ protected:
public:
enum { class_ID = 'RCoo', pane_ID = 'RCoo' };
enum {
msg_ActiveSelectorChanged = 'selc' // broadcast when selector changes
msg_ActiveSelectorChanged = 'selc', // broadcast when selector changes
kScrollerPaneID = 'HyTC' // pane id of the scroller containing tree/headers/etc
};
// Set the current workspace to a particular kind of workspace