mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0027543: Samples - flickering when view is resized in MFC samples
Define proper window class for OpenGL window within overridden method CView::PreCreateWindow().
This commit is contained in:
@@ -276,8 +276,9 @@ void CGeometryView2D::OnMouseMove(UINT nFlags, CPoint point)
|
||||
}
|
||||
}
|
||||
|
||||
void CGeometryView2D::OnSize(UINT /*nType*/, int /*cx*/, int /*cy*/)
|
||||
void CGeometryView2D::OnSize(UINT nType, int cx, int cy)
|
||||
{
|
||||
OCC_2dView::OnSize (nType, cx, cy);
|
||||
if (!myV2dView.IsNull())
|
||||
{
|
||||
myV2dView->MustBeResized(); // added sro
|
||||
|
Reference in New Issue
Block a user