Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/******************************Module*Header*******************************\
* Module Name: exclude.hxx * * Handles sprite exclusion. * * Created: 13-Sep-1990 16:29:44 * Author: Charles Whitmer [chuckwh] * * Copyright (c) 1990-1999 Microsoft Corporation \**************************************************************************/
/*********************************Class************************************\
* DEVEXCLUDERECT * * Excludes any sprites from the given rectangular area. * * 16-Sep-1997 -by- J. Andrew Goossen [andrewgo] * Wrote it. \**************************************************************************/
class DEVEXCLUDERECT { private: BOOL bUnTearDown; HDEV hdev; RECTL rcl;
public: DEVEXCLUDERECT() { bUnTearDown = FALSE; } DEVEXCLUDERECT(HDEV _hdev, RECTL* _prcl) { vExclude(_hdev, _prcl); } VOID vExclude(HDEV _hdev, RECTL* _prcl) { hdev = _hdev; rcl = *_prcl;
bUnTearDown = DxEngSpTearDownSprites(hdev, _prcl, FALSE); } ~DEVEXCLUDERECT() { if (bUnTearDown) DxEngSpUnTearDownSprites(hdev, &rcl, FALSE); } };
|