mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0024355: Compiler Warning level 4 for MFC samples
Some warnings were removed from MFC samples All warnings of sample projects with warning level 4 were fixed on VC9 Warnings level increased to -W4 in projects of MFC samples; sample ReadMe files added to documentation Changes in Viewer2dDoc.cpp and OcafDoc.cpp were restored. Minor corrections in documentation
This commit is contained in:
@@ -168,9 +168,9 @@ void OCC_3dBaseDoc::ShiftDragEvent (const Standard_Integer theMouseX,
|
||||
//-----------------------------------------------------------------------------------------
|
||||
//
|
||||
//-----------------------------------------------------------------------------------------
|
||||
void OCC_3dBaseDoc::ShiftInputEvent (const Standard_Integer theMouseX,
|
||||
const Standard_Integer theMouseY,
|
||||
const Handle(V3d_View)& theView)
|
||||
void OCC_3dBaseDoc::ShiftInputEvent (const Standard_Integer /*theMouseX*/,
|
||||
const Standard_Integer /*theMouseY*/,
|
||||
const Handle(V3d_View)& /*theView*/)
|
||||
{
|
||||
myAISContext->ShiftSelect();
|
||||
}
|
||||
@@ -322,9 +322,9 @@ void OCC_3dBaseDoc::OnObjectMaterial()
|
||||
{
|
||||
CDialogMaterial DialBox(myAISContext);
|
||||
DialBox.DoModal();
|
||||
CMDIFrameWnd *pFrame = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
|
||||
CMDIChildWnd *pChild = (CMDIChildWnd *) pFrame->GetActiveFrame();
|
||||
OCC_3dView *pView = (OCC_3dView *) pChild->GetActiveView();
|
||||
//CMDIFrameWnd *pFrame = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
|
||||
//CMDIChildWnd *pChild = (CMDIChildWnd *) pFrame->GetActiveFrame();
|
||||
//OCC_3dView *pView = (OCC_3dView *) pChild->GetActiveView();
|
||||
}
|
||||
|
||||
void OCC_3dBaseDoc::OnUpdateObjectMaterial(CCmdUI* pCmdUI)
|
||||
@@ -366,9 +366,9 @@ void OCC_3dBaseDoc::OnObjectTransparency()
|
||||
{
|
||||
CDialogTransparency DialBox(myAISContext);
|
||||
DialBox.DoModal();
|
||||
CMDIFrameWnd *pFrame = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
|
||||
CMDIChildWnd *pChild = (CMDIChildWnd *) pFrame->GetActiveFrame();
|
||||
OCC_3dView *pView = (OCC_3dView *) pChild->GetActiveView();
|
||||
//CMDIFrameWnd *pFrame = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
|
||||
//CMDIChildWnd *pChild = (CMDIChildWnd *) pFrame->GetActiveFrame();
|
||||
//OCC_3dView *pView = (OCC_3dView *) pChild->GetActiveView();
|
||||
// pView->Redraw();
|
||||
}
|
||||
|
||||
@@ -429,7 +429,7 @@ void OCC_3dBaseDoc::OnObjectAddDimensions()
|
||||
myDimensionDlg.UpdateStandardMode ();
|
||||
}
|
||||
|
||||
void OCC_3dBaseDoc::OnUpdateObjectAddDimensions(CCmdUI* pCmdUI)
|
||||
void OCC_3dBaseDoc::OnUpdateObjectAddDimensions(CCmdUI* /*pCmdUI*/)
|
||||
{
|
||||
// Check if local context is opened
|
||||
//pCmdUI->Enable (myAISContext->HasOpenedContext());
|
||||
|
Reference in New Issue
Block a user