newntui/discovermdi/src/dockablebrowser.cpp
//--------------------------------------------------------------------------------
// This function returns the current side of the frame window to which this 
// dockable bar docked. The values are DOCK_LEFT, DOCK_RIGHT, DOCK_TOP, DOCK_BOTTOM.
//--------------------------------------------------------------------------------
This function returns the current side of the frame window to which this
dockable bar docked.
This function returns the current side of the frame window to which this dockable bar docked .
int CDockableBrowser::GetDockSide() {
	if(IsFloating()) return DOCK_FLOAT;
    if(m_pDockBar==GetDockingFrame()->GetControlBar(AFX_IDW_DOCKBAR_TOP) )    
		return DOCK_TOP;
    if(m_pDockBar==GetDockingFrame()->GetControlBar(AFX_IDW_DOCKBAR_BOTTOM) ) 
		return DOCK_BOTTOM;
    if(m_pDockBar==GetDockingFrame()->GetControlBar(AFX_IDW_DOCKBAR_LEFT) )   
		return DOCK_LEFT;
    if(m_pDockBar==GetDockingFrame()->GetControlBar(AFX_IDW_DOCKBAR_RIGHT) )  
		return DOCK_RIGHT;
	return -1;
}
int CDockableBrowser :: GetDockSide ( ) { if ( IsFloating ( ) ) return DOCK_FLOAT ; if ( m_pDockBar == GetDockingFrame ( ) -> GetControlBar ( AFX_IDW_DOCKBAR_TOP ) ) return DOCK_TOP ; if ( m_pDockBar == GetDockingFrame ( ) -> GetControlBar ( AFX_IDW_DOCKBAR_BOTTOM ) ) return DOCK_BOTTOM ; if ( m_pDockBar == GetDockingFrame ( ) -> GetControlBar ( AFX_IDW_DOCKBAR_LEFT ) ) return DOCK_LEFT ; if ( m_pDockBar == GetDockingFrame ( ) -> GetControlBar ( AFX_IDW_DOCKBAR_RIGHT ) ) return DOCK_RIGHT ; return -1 ; }
This function returns the current side of the frame window to which this
dockable bar docked.
This function returns the current side of the frame window to which this dockable bar docked .