ReactOS 0.4.15-dev-7961-gdcf9eb0
CWaitCursor Class Reference

#include <CWaitCursor.h>

Public Member Functions

 CWaitCursor ()
 
 ~CWaitCursor ()
 
 CWaitCursor (const CWaitCursor &)=delete
 
CWaitCursoroperator= (const CWaitCursor &)=delete
 
voidoperator new (size_t)=delete
 
void operator delete (void *)=delete
 

Static Public Member Functions

static BOOL IsWaiting ()
 
static void Restore ()
 

Static Protected Attributes

static LONG s_nLock = 0
 
static HCURSOR s_hOldCursor = NULL
 
static HCURSOR s_hWaitCursor = NULL
 

Detailed Description

Definition at line 10 of file CWaitCursor.h.

Constructor & Destructor Documentation

◆ CWaitCursor() [1/2]

CWaitCursor::CWaitCursor ( )
inline

Definition at line 13 of file CWaitCursor.h.

14 {
15 if (s_nLock++ == 0)
16 {
17 if (!s_hWaitCursor)
20 }
21 else
22 {
24 }
25 }
static LONG s_nLock
Definition: CWaitCursor.h:51
static HCURSOR s_hOldCursor
Definition: CWaitCursor.h:52
static HCURSOR s_hWaitCursor
Definition: CWaitCursor.h:53
#define NULL
Definition: types.h:112
HCURSOR WINAPI SetCursor(_In_opt_ HCURSOR)
#define LoadCursor
Definition: winuser.h:5812
#define IDC_WAIT
Definition: winuser.h:689

◆ ~CWaitCursor()

CWaitCursor::~CWaitCursor ( )
inline

Definition at line 26 of file CWaitCursor.h.

27 {
28 if (--s_nLock == 0)
29 {
32 }
33 }

◆ CWaitCursor() [2/2]

CWaitCursor::CWaitCursor ( const CWaitCursor )
delete

Member Function Documentation

◆ IsWaiting()

static BOOL CWaitCursor::IsWaiting ( )
inlinestatic

Definition at line 40 of file CWaitCursor.h.

41 {
42 return s_nLock > 0;
43 }

Referenced by CCanvasWindow::OnSetCursor(), and CTextEditWindow::OnSetCursor().

◆ operator delete()

void CWaitCursor::operator delete ( void )
delete

◆ operator new()

void * CWaitCursor::operator new ( size_t  )
delete

◆ operator=()

CWaitCursor & CWaitCursor::operator= ( const CWaitCursor )
delete

◆ Restore()

static void CWaitCursor::Restore ( )
inlinestatic

Definition at line 45 of file CWaitCursor.h.

46 {
48 }

Member Data Documentation

◆ s_hOldCursor

DECLSPEC_SELECTANY HCURSOR CWaitCursor::s_hOldCursor = NULL
staticprotected

Definition at line 52 of file CWaitCursor.h.

Referenced by CWaitCursor(), and ~CWaitCursor().

◆ s_hWaitCursor

DECLSPEC_SELECTANY HCURSOR CWaitCursor::s_hWaitCursor = NULL
staticprotected

Definition at line 53 of file CWaitCursor.h.

Referenced by CWaitCursor(), and Restore().

◆ s_nLock

DECLSPEC_SELECTANY LONG CWaitCursor::s_nLock = 0
staticprotected

Definition at line 51 of file CWaitCursor.h.

Referenced by CWaitCursor(), IsWaiting(), and ~CWaitCursor().


The documentation for this class was generated from the following file: