From 168077a6dc421dd378408beeace5b22255dfd9b6 Mon Sep 17 00:00:00 2001 From: ski Date: Wed, 23 Nov 2016 10:24:20 +0300 Subject: [PATCH] 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. --- samples/mfc/standard/10_Convert/src/OCCDemo_Presentation.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);