* PROJECT: ReactOS Win32k subsystem
* PURPOSE: Caret functions
* FILE: win32ss/user/ntuser/caret.c
- * PROGRAMER: Thomas Weidenmueller (w3seek@users.sourceforge.net)
+ * PROGRAMERS: Thomas Weidenmueller (w3seek@users.sourceforge.net)
+ * Katayama Hirofumi MZ (katayama.hirofumi.mz@gmail.com)
*/
#include <win32k.h>
{
HDC hdc, hdcMem;
HBITMAP hbmOld;
+ RECT rcClient;
BOOL bDone = FALSE;
if (pWnd == NULL)
return;
}
- hdc = UserGetDCEx(pWnd, 0, DCX_USESTYLE | DCX_WINDOW);
+ hdc = UserGetDCEx(pWnd, NULL, DCX_USESTYLE);
if (!hdc)
{
ERR("GetDC failed\n");
NtGdiSaveDC(hdc);
}
+ IntGetClientRect(pWnd, &rcClient);
+ NtGdiIntersectClipRect(hdc,
+ rcClient.left,
+ rcClient.top,
+ rcClient.right,
+ rcClient.bottom);
+
if (CaretInfo->Bitmap)
{
if (!GreGetBitmapDimension(CaretInfo->Bitmap, &CaretInfo->Size))