Windows2000/private/windows/shell/accesory/ole2pbsh/hidecsr.c

31 lines
708 B
C
Raw Normal View History

2001-01-01 00:00:00 +01:00
/****************************Module*Header******************************\
* Copyright (c) 1987 - 1991 Microsoft Corporation *
*/
/*
* file: HideCsr.c *
* system: PC Paintbrush for MS-Windows *
* descr: hides paint window's cursor *
* date: 03/06/87 @ 15:45 *
*/
#include "onlypbr.h"
#include <windows.h>
#include "port1632.h"
#include "pbrush.h"
void HideCsr(HDC dc, HWND hWnd, int csr)
{
if(CursorStat.allowed)
return;
if(!drawing)
dc = GetDisplayDC(hWnd);
XorCsr(dc, csrPt, csr);
csrPt.x = csrPt.y = -1;
if(!drawing)
ReleaseDC(hWnd, dc);
}