https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ea5d2c5f7a1644797824f751dd8c61787d128b66
commit ea5d2c5f7a1644797824f751dd8c61787d128b66 Author: Katayama Hirofumi MZ <katayama.hirofumi...@gmail.com> AuthorDate: Tue Sep 12 05:39:08 2023 +0900 Commit: GitHub <nore...@github.com> CommitDate: Tue Sep 12 05:39:08 2023 +0900 [MSPAINT][SDK] Add <ui/CWaitCursor.h> (#5680) CORE-19094 --- base/applications/mspaint/precomp.h | 2 +- .../mspaint/waitcursor.h => sdk/include/reactos/ui/CWaitCursor.h | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/base/applications/mspaint/precomp.h b/base/applications/mspaint/precomp.h index 0c1d6b33ba8..51413a4ed6c 100644 --- a/base/applications/mspaint/precomp.h +++ b/base/applications/mspaint/precomp.h @@ -50,7 +50,7 @@ #include "toolsmodel.h" #include "winproc.h" #include "dialogs.h" -#include "waitcursor.h" +#include <ui/CWaitCursor.h> #include "globalvar.h" #endif /* _MSPAINT_H */ diff --git a/base/applications/mspaint/waitcursor.h b/sdk/include/reactos/ui/CWaitCursor.h similarity index 89% rename from base/applications/mspaint/waitcursor.h rename to sdk/include/reactos/ui/CWaitCursor.h index 20269ed16eb..38bc74d614d 100644 --- a/base/applications/mspaint/waitcursor.h +++ b/sdk/include/reactos/ui/CWaitCursor.h @@ -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 <katayama.hirofumi...@gmail.com> @@ -31,14 +31,18 @@ public: 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); }