2020-09-30 17:12:29 +02:00

27 lines
357 B
C++

#include "stdafx.h"
#pragma hdrstop
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
CWaitCursor::CWaitCursor(void)
{
hcurOld = SetCursor(LoadCursor(NULL, IDC_WAIT));
}
CWaitCursor::~CWaitCursor()
{
if (hcurOld)
SetCursor(hcurOld);
}
void CWaitCursor::Restore(void)
{
if (hcurOld)
SetCursor(hcurOld);
hcurOld = NULL;
}