0025284: Problems with standard MFC samples
authoraba <aba@opencascade.com>
Thu, 9 Oct 2014 11:40:14 +0000 (15:40 +0400)
committerbugmaster <bugmaster@opencascade.com>
Thu, 9 Oct 2014 12:02:12 +0000 (16:02 +0400)
commit4716247158067af48d9f35f5943318b2357ba846
tree2bb8c54225f58787205722b60e305ac5eb4df5d9
parent679d38788d7360568e8dee6f2832d86a02800af9
0025284: Problems with standard MFC samples

 - OCAF sample Save Document option: corrected conversion from LPCTSTR to Standard_CString
 - HLR sample: corrected mouse move event handling for HLR 2D view; Corrected CSelectionDialog view displaying and updating
 - Geometry sample: CGeometryDoc correction to avoid code duplication
 - OCC_3dBaseDoc: corrected DragEvent() handler for proper emulation of rectangle selection.
 - Viewer3d sample: moved resource files (resource.h; resource.hm; AISToolbar.bmp) from /src to /res

Code style changes

Fixed "About" dialog error in release.

Corrected dimension dialogs

Workaround for dimensions sample: AIS_LocalContext::SelectedShape() doesn't take into account TopoDS shape local transformation, and operates with selected interactive transformation.
51 files changed:
samples/mfc/standard/01_Geometry/src/GeometryDoc.cpp
samples/mfc/standard/01_Geometry/src/GeometryDoc.h
samples/mfc/standard/01_Geometry/src/GeometryView.cpp
samples/mfc/standard/01_Geometry/src/GeometryView.h
samples/mfc/standard/04_Viewer3d/adm/win/vc10/Viewer3d.vcxproj
samples/mfc/standard/04_Viewer3d/adm/win/vc10/Viewer3d.vcxproj.filters
samples/mfc/standard/04_Viewer3d/adm/win/vc11/Viewer3d.vcxproj
samples/mfc/standard/04_Viewer3d/adm/win/vc11/Viewer3d.vcxproj.filters
samples/mfc/standard/04_Viewer3d/adm/win/vc12/Viewer3d.vcxproj
samples/mfc/standard/04_Viewer3d/adm/win/vc12/Viewer3d.vcxproj.filters
samples/mfc/standard/04_Viewer3d/adm/win/vc8/Viewer3d.vcproj
samples/mfc/standard/04_Viewer3d/adm/win/vc9/Viewer3d.vcproj
samples/mfc/standard/04_Viewer3d/res/AISToolbar.bmp [moved from samples/mfc/standard/04_Viewer3d/src/AISToolbar.bmp with 100% similarity, mode: 0644]
samples/mfc/standard/04_Viewer3d/res/Viewer3d.rc
samples/mfc/standard/04_Viewer3d/res/resource.h
samples/mfc/standard/04_Viewer3d/res/resource.hm [moved from samples/mfc/standard/04_Viewer3d/src/resource.hm with 100% similarity, mode: 0644]
samples/mfc/standard/04_Viewer3d/src/OffsetDlg.cpp
samples/mfc/standard/04_Viewer3d/src/ScaleDlg.h
samples/mfc/standard/04_Viewer3d/src/ShadingModelDlg.h
samples/mfc/standard/04_Viewer3d/src/StdAfx.h
samples/mfc/standard/04_Viewer3d/src/TrihedronDlg.h
samples/mfc/standard/04_Viewer3d/src/Viewer3d.rc [deleted file]
samples/mfc/standard/04_Viewer3d/src/Viewer3dDoc.cpp
samples/mfc/standard/04_Viewer3d/src/Viewer3dDoc.h
samples/mfc/standard/04_Viewer3d/src/Viewer3dView.cpp
samples/mfc/standard/04_Viewer3d/src/resource.h [deleted file]
samples/mfc/standard/05_ImportExport/src/ImportExportDoc.cpp
samples/mfc/standard/05_ImportExport/src/ImportExportDoc.h
samples/mfc/standard/06_Ocaf/src/OcafDoc.cpp
samples/mfc/standard/08_HLR/res/HLR.rc
samples/mfc/standard/08_HLR/res/resource.h
samples/mfc/standard/08_HLR/src/HLRDoc.cpp
samples/mfc/standard/08_HLR/src/HLRView2D.cpp
samples/mfc/standard/08_HLR/src/HLRView2D.h
samples/mfc/standard/08_HLR/src/SelectionDialog.cpp
samples/mfc/standard/Common/AngleParamsVerticesPage.cpp
samples/mfc/standard/Common/DimensionDlg.cpp
samples/mfc/standard/Common/DimensionDlg.h
samples/mfc/standard/Common/LengthParamsEdgePage.cpp
samples/mfc/standard/Common/LengthParamsEdgesPage.cpp
samples/mfc/standard/Common/LengthParamsVerticesPage.cpp
samples/mfc/standard/Common/OCC_2dDoc.h
samples/mfc/standard/Common/OCC_3dBaseDoc.cpp
samples/mfc/standard/Common/OCC_3dBaseDoc.h
samples/mfc/standard/Common/OCC_3dDoc.cpp
samples/mfc/standard/Common/OCC_3dDoc.h
samples/mfc/standard/Common/OCC_3dView.cpp
samples/mfc/standard/Common/OCC_App.cpp
samples/mfc/standard/Common/ParamsFacesPage.cpp
samples/mfc/standard/Common/RadiusParamsPage.cpp
samples/mfc/standard/Common/res/OCC_Resource.rc