Don't destroy the caret on SWP_HIDEWINDOW.
This commit is contained in:
parent
a64603d3d6
commit
f2355e0f15
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue