newntui/discovermdi/src/errorsbrowser.cpp
//---------------------------------------------------------------------------------
// This function will calculate fixed size of the dockable window.
// (This dimention depends only from the frame size)
//---------------------------------------------------------------------------------
This function will calculate fixed size of the dockable window.
(This dimention depends only from the frame size)
This function will calculate fixed size of the dockable window . ( This dimention depends only from the frame size )
void CErrorsBrowser::CalculateFixedSize() {
CRect frameRect;
       GetParent()->GetWindowRect(&frameRect); 
	   switch(GetDockSide()) {
	       case DOCK_LEFT : m_sizeDefault.cx=100;
			                break;
	       case DOCK_RIGHT: m_sizeDefault.cx=100;
			                break;
	       case DOCK_TOP :  m_sizeDefault.cy=100;
			                break;
	       case DOCK_BOTTOM:m_sizeDefault.cy=100;
			                break;
	   }
}
void CErrorsBrowser :: CalculateFixedSize ( ) { CRect frameRect ; GetParent ( ) -> GetWindowRect ( & frameRect ) ; switch ( GetDockSide ( ) ) { case DOCK_LEFT : m_sizeDefault . cx = 100 ; break ; case DOCK_RIGHT : m_sizeDefault . cx = 100 ; break ; case DOCK_TOP : m_sizeDefault . cy = 100 ; break ; case DOCK_BOTTOM : m_sizeDefault . cy = 100 ; break ; } }
This function will calculate fixed size of the dockable window.
This function will calculate fixed size of the dockable window .