ReactOS 0.4.15-dev-7934-g1dc8d80
caret.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

BOOL FASTCALL co_IntDestroyCaret (PTHREADINFO Win32Thread)
 
BOOL FASTCALL IntSetCaretBlinkTime (UINT uMSeconds)
 
BOOL FASTCALL co_IntSetCaretPos (int X, int Y)
 
BOOL FASTCALL IntSwitchCaretShowing (PVOID Info)
 
BOOL FASTCALL co_UserShowCaret (PWND WindowObject)
 
BOOL FASTCALL co_UserHideCaret (PWND WindowObject)
 

Function Documentation

◆ co_IntDestroyCaret()

BOOL FASTCALL co_IntDestroyCaret ( PTHREADINFO  Win32Thread)

Definition at line 159 of file caret.c.

160{
161 PUSER_MESSAGE_QUEUE ThreadQueue;
162 PWND pWnd;
163 ThreadQueue = Win32Thread->MessageQueue;
164
165 if (!ThreadQueue)
166 return FALSE;
167
168 pWnd = ValidateHwndNoErr(ThreadQueue->CaretInfo.hWnd);
169 co_IntHideCaret(&ThreadQueue->CaretInfo);
170 ThreadQueue->CaretInfo.Bitmap = (HBITMAP)0;
171 ThreadQueue->CaretInfo.hWnd = (HWND)0;
172 ThreadQueue->CaretInfo.Size.cx = ThreadQueue->CaretInfo.Size.cy = 0;
173 ThreadQueue->CaretInfo.Showing = 0;
174 ThreadQueue->CaretInfo.Visible = 0;
175 if (pWnd)
176 {
177 IntNotifyWinEvent(EVENT_OBJECT_DESTROY, pWnd, OBJID_CARET, CHILDID_SELF, 0);
178 }
179 return TRUE;
180}
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
HANDLE HWND
Definition: compat.h:19
#define ValidateHwndNoErr(hwnd)
Definition: precomp.h:84
static HBITMAP
Definition: button.c:44
LONG cx
Definition: kdterminal.h:27
LONG cy
Definition: kdterminal.h:28
HBITMAP Bitmap
Definition: ntusrtyp.h:130
struct _USER_MESSAGE_QUEUE * MessageQueue
Definition: win32.h:89
THRDCARETINFO CaretInfo
Definition: msgqueue.h:92
Definition: ntuser.h:694
static BOOL FASTCALL co_IntHideCaret(PTHRDCARETINFO CaretInfo)
Definition: caret.c:143
VOID FASTCALL IntNotifyWinEvent(DWORD Event, PWND pWnd, LONG idObject, LONG idChild, DWORD flags)
Definition: event.c:178
#define OBJID_CARET
Definition: winable.h:23
#define CHILDID_SELF
Definition: winable.h:14

Referenced by IntSendDestroyMsg(), and NtUserCallNoParam().

◆ co_IntSetCaretPos()

BOOL FASTCALL co_IntSetCaretPos ( int  X,
int  Y 
)

Definition at line 193 of file caret.c.

194{
195 PTHREADINFO pti;
196 PWND pWnd;
197 PUSER_MESSAGE_QUEUE ThreadQueue;
198
200 ThreadQueue = pti->MessageQueue;
201
202 if(ThreadQueue->CaretInfo.hWnd)
203 {
204 pWnd = UserGetWindowObject(ThreadQueue->CaretInfo.hWnd);
205 if(ThreadQueue->CaretInfo.Pos.x != X || ThreadQueue->CaretInfo.Pos.y != Y)
206 {
207 co_IntHideCaret(&ThreadQueue->CaretInfo);
208 ThreadQueue->CaretInfo.Pos.x = X;
209 ThreadQueue->CaretInfo.Pos.y = Y;
210 if (ThreadQueue->CaretInfo.Visible)
211 {
212 ThreadQueue->CaretInfo.Showing = 1;
213 co_IntDrawCaret(pWnd, &ThreadQueue->CaretInfo);
214 }
215
217 IntNotifyWinEvent(EVENT_OBJECT_LOCATIONCHANGE, pWnd, OBJID_CARET, CHILDID_SELF, 0);
218 }
219 return TRUE;
220 }
221
222 return FALSE;
223}
#define Y(I)
PSERVERINFO gpsi
Definition: imm.c:18
#define X(b, s)
PVOID NTAPI PsGetCurrentThreadWin32Thread(VOID)
Definition: thread.c:805
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48
#define IDCARETTIMER
Definition: undocuser.h:80
PWND FASTCALL UserGetWindowObject(HWND hWnd)
Definition: window.c:122
VOID CALLBACK CaretSystemTimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
Definition: caret.c:97
VOID FASTCALL co_IntDrawCaret(PWND pWnd, PTHRDCARETINFO CaretInfo)
Definition: caret.c:16
UINT_PTR FASTCALL IntSetTimer(PWND Window, UINT_PTR IDEvent, UINT Elapse, TIMERPROC TimerFunc, INT Type)
Definition: timer.c:177
#define TMRF_SYSTEM
Definition: timer.h:20

Referenced by IntDrawScrollBar(), IntScrollWindowEx(), and NtUserCallTwoParam().

◆ co_UserHideCaret()

BOOL FASTCALL co_UserHideCaret ( PWND  WindowObject)

◆ co_UserShowCaret()

BOOL FASTCALL co_UserShowCaret ( PWND  WindowObject)

◆ IntSetCaretBlinkTime()

BOOL FASTCALL IntSetCaretBlinkTime ( UINT  uMSeconds)

Definition at line 183 of file caret.c.

184{
185 /* Don't save the new value to the registry! */
186
187 gpsi->dtCaretBlink = uMSeconds;
188
189 return TRUE;
190}

Referenced by NtUserCallOneParam().

◆ IntSwitchCaretShowing()

BOOL FASTCALL IntSwitchCaretShowing ( PVOID  Info)