3 * Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 * PROJECT: ReactOS user32.dll
21 * FILE: lib/user32/windows/caret.c
23 * PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
25 * 09-05-2001 CSH Created
28 /* INCLUDES ******************************************************************/
32 #include <wine/debug.h>
33 WINE_DEFAULT_DEBUG_CHANNEL(user32
);
35 /* FUNCTIONS *****************************************************************/
39 PTHRDCARETINFO CaretInfo
)
48 ERR("GetDC failed\n");
52 if(CaretInfo
->Bitmap
&& GetBitmapDimensionEx(CaretInfo
->Bitmap
, &CaretInfo
->Size
))
54 hdcMem
= CreateCompatibleDC(hdc
);
57 hbmOld
= SelectObject(hdcMem
, CaretInfo
->Bitmap
);
67 SelectObject(hdcMem
, hbmOld
);
93 return NtUserxDestroyCaret();
102 SetCaretBlinkTime(UINT uMSeconds
)
104 return NtUserxSetCaretBlinkTime(uMSeconds
);
113 SetCaretPos(int X
, int Y
)
115 return NtUserxSetCaretPos(X
, Y
);