mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
357 B
26 lines
357 B
#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;
|
|
}
|