Skip to content

Commit

Permalink
[MSPAINT][SDK] Add <ui/CWaitCursor.h> (reactos#5680)
Browse files Browse the repository at this point in the history
CORE-19094
  • Loading branch information
katahiromz authored Sep 11, 2023
1 parent e13ebd4 commit ea5d2c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion base/applications/mspaint/precomp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
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]>
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit ea5d2c5

Please sign in to comment.