Don't destroy the caret on SWP_HIDEWINDOW.

This commit is contained in:
Susan Farley 2000-07-25 20:59:03 +00:00 committed by Alexandre Julliard
parent a64603d3d6
commit f2355e0f15

View File

@ -2829,8 +2829,14 @@ Pos: /* -----------------------------------------------------------------------
if( winpos.flags & SWP_HIDEWINDOW )
{
wndPtr->dwStyle &= ~WS_VISIBLE;
}
if (hwnd == CARET_GetHwnd()) DestroyCaret();
if (hwnd == CARET_GetHwnd())
{
if( winpos.flags & SWP_HIDEWINDOW )
HideCaret(hwnd);
else if (winpos.flags & SWP_SHOWWINDOW)
ShowCaret(hwnd);
}
/* ------------------------------------------------------------------------ FINAL */