From: ski Date: Wed, 23 Nov 2016 07:24:20 +0000 (+0300) Subject: 0025362: Samples - Conversion to B-Spline doesn't show bspline surface on Windows 8 X-Git-Tag: V7_1_0~1 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=168077a6dc421dd378408beeace5b22255dfd9b6;p=occt-copy.git 0025362: Samples - Conversion to B-Spline doesn't show bspline surface on Windows 8 Added constants WM_MOUSEFIRST and WM_PAINT in WaitForInput method for correct handling of system messages. --- diff --git a/samples/mfc/standard/10_Convert/src/OCCDemo_Presentation.cpp b/samples/mfc/standard/10_Convert/src/OCCDemo_Presentation.cpp index 4b3554b31a..9097ec24aa 100755 --- a/samples/mfc/standard/10_Convert/src/OCCDemo_Presentation.cpp +++ b/samples/mfc/standard/10_Convert/src/OCCDemo_Presentation.cpp @@ -39,7 +39,9 @@ Standard_Boolean OCCDemo_Presentation::WaitForInput (unsigned long aMilliSeconds MSG msg; if (::PeekMessage (&msg, NULL, 0, 0, PM_NOREMOVE)) { - if (msg.message == WM_KEYUP) + if ( msg.message == WM_KEYUP || + msg.message == WM_MOUSEFIRST || + msg.message == WM_PAINT ) { ::PeekMessage (&msg, NULL, 0, 0, PM_REMOVE); return WaitForInput (aMilliSeconds);