Skip to content

Commit 168077a

Browse files
skiapn
authored andcommitted
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.
1 parent d96fd48 commit 168077a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

samples/mfc/standard/10_Convert/src/OCCDemo_Presentation.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ Standard_Boolean OCCDemo_Presentation::WaitForInput (unsigned long aMilliSeconds
3939
MSG msg;
4040
if (::PeekMessage (&msg, NULL, 0, 0, PM_NOREMOVE))
4141
{
42-
if (msg.message == WM_KEYUP)
42+
if ( msg.message == WM_KEYUP ||
43+
msg.message == WM_MOUSEFIRST ||
44+
msg.message == WM_PAINT )
4345
{
4446
::PeekMessage (&msg, NULL, 0, 0, PM_REMOVE);
4547
return WaitForInput (aMilliSeconds);

0 commit comments

Comments
 (0)