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);