findlanabyname-20040228
[openafs.git] / src / WINNT / client_exp / hourglass.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #include <windows.h>
11
12 typedef class HOURGLASS
13 {
14    protected:
15       HCURSOR m_OldCursor;
16
17    public:
18       HOURGLASS (LPCSTR idCursor = IDC_WAIT)
19       {
20          m_OldCursor = GetCursor();
21          SetCursor (LoadCursor (NULL, idCursor));
22       }
23
24       virtual ~HOURGLASS (void)
25       {
26          SetCursor (m_OldCursor);
27       }
28
29 } HOURGLASS, *PHOURGLASS;
30