BinClone/CloneDetectorGUI/CloneDetectorGUIView.cpp
// Override OnSize to resize the control to match the view
Override OnSize to resize the control to match the view
Override OnSize to resize the control to match the view
void CCloneDetectorGUIView::OnSize(UINT nType, int cx, int cy) 
{
	CView::OnSize(nType, cx, cy);
	if (::IsWindow(m_ListCtrl.m_hWnd))
		m_ListCtrl.MoveWindow(0, 0, cx, cy, TRUE);
	CRect r;
	GetClientRect(r);
	m_ListCtrl.SetWindowPos (&wndTop,0,0,r.right,r.bottom ,SWP_SHOWWINDOW);
	CCloneDetectorGUIDoc* pDoc = GetDocument();
	CString xmlfile = pDoc->getXmlFilePathAndName();
	GetParent()->SetWindowText(xmlfile);
    CMainFrame *pFrame=(CMainFrame*)AfxGetMainWnd();
    pFrame->SetAppName(_T("")); 
    pFrame->OnUpdateFrameTitle(TRUE);
}
void CCloneDetectorGUIView :: OnSize ( UINT nType , int cx , int cy ) { CView :: OnSize ( nType , cx , cy ) ; if ( :: IsWindow ( m_ListCtrl . m_hWnd ) ) m_ListCtrl . MoveWindow ( 0 , 0 , cx , cy , TRUE ) ; CRect r ; GetClientRect ( r ) ; m_ListCtrl . SetWindowPos ( & wndTop , 0 , 0 , r . right , r . bottom , SWP_SHOWWINDOW ) ; CCloneDetectorGUIDoc * pDoc = GetDocument ( ) ; CString xmlfile = pDoc -> getXmlFilePathAndName ( ) ; GetParent ( ) -> SetWindowText ( xmlfile ) ; CMainFrame * pFrame = ( CMainFrame * ) AfxGetMainWnd ( ) ; pFrame -> SetAppName ( _T ( " " ) ) ; pFrame -> OnUpdateFrameTitle ( TRUE ) ; }
Override OnSize to resize the control to match the view
Override OnSize to resize the control to match the view