forked from reactos/reactos
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MSPAINT][SDK] Add <ui/CWaitCursor.h> (reactos#5680)
CORE-19094
- Loading branch information
1 parent
e13ebd4
commit ea5d2c5
Showing
2 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* PROJECT: PAINT for ReactOS | ||
* PROJECT: ReactOS headers | ||
* LICENSE: LGPL-2.0-or-later (https://spdx.org/licenses/LGPL-2.0-or-later) | ||
* PURPOSE: Wait cursor management | ||
* COPYRIGHT: Copyright 2023 Katayama Hirofumi MZ <[email protected]> | ||
|
@@ -31,14 +31,18 @@ class CWaitCursor | |
s_hOldCursor = NULL; | ||
} | ||
} | ||
|
||
CWaitCursor(const CWaitCursor&) = delete; | ||
CWaitCursor& operator=(const CWaitCursor&) = delete; | ||
void *operator new(size_t) = delete; | ||
void operator delete(void*) = delete; | ||
|
||
static BOOL IsWaiting() | ||
{ | ||
return s_nLock > 0; | ||
} | ||
static void KeepWait() | ||
|
||
static void Restore() | ||
{ | ||
::SetCursor(s_hWaitCursor); | ||
} | ||
|