Author: jimtabor
Date: Sat Mar 28 17:37:44 2015
New Revision: 66933
URL:
http://svn.reactos.org/svn/reactos?rev=66933&view=rev
Log:
[NtUser]
- Patch by Fedor Zaytsev : Fixes edit cursor, remained painted after it was removed, see
CORE-2131.
Modified:
trunk/reactos/win32ss/user/ntuser/caret.c
Modified: trunk/reactos/win32ss/user/ntuser/caret.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/caret.…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/caret.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/caret.c [iso-8859-1] Sat Mar 28 17:37:44 2015
@@ -137,6 +137,7 @@
pWnd = UserGetWindowObject(CaretInfo->hWnd);
CaretInfo->Showing = 0;
+ co_IntDrawCaret(pWnd, CaretInfo);
IntNotifyWinEvent(EVENT_OBJECT_HIDE, pWnd, OBJID_CARET, CHILDID_SELF, 0);
return TRUE;
}
@@ -200,9 +201,10 @@
if(ThreadQueue->CaretInfo->Pos.x != X || ThreadQueue->CaretInfo->Pos.y
!= Y)
{
co_IntHideCaret(ThreadQueue->CaretInfo);
- ThreadQueue->CaretInfo->Showing = 0;
+ ThreadQueue->CaretInfo->Showing = 1;
ThreadQueue->CaretInfo->Pos.x = X;
ThreadQueue->CaretInfo->Pos.y = Y;
+ co_IntDrawCaret(pWnd, ThreadQueue->CaretInfo);
IntSetTimer(pWnd, IDCARETTIMER, gpsi->dtCaretBlink, CaretSystemTimerProc,
TMRF_SYSTEM);
IntNotifyWinEvent(EVENT_OBJECT_LOCATIONCHANGE, pWnd, OBJID_CARET, CHILDID_SELF,
0);