Leaked source code of windows server 2003
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.
 
 
 
 
 
 

33 lines
766 B

#ifndef _CWAITCUR_H
#define _CWAITCUR_H
// ----------------------------------------------------------------------------
// CWaitCursor()
// ----------------------------------------------------------------------------
class CWaitCursor
{
public:
CWaitCursor() : m_hOldCursor(NULL)
{
m_hWaitCursor = ::LoadCursor(NULL, IDC_WAIT);
if (!m_hWaitCursor)
return;
m_hOldCursor = ::SetCursor(m_hWaitCursor);
}
~CWaitCursor()
{
if( m_hOldCursor )
{
::SetCursor(m_hOldCursor);
}
}
private:
HCURSOR m_hOldCursor;
HCURSOR m_hWaitCursor;
};
#endif