15c00688fe836f48b38e62407ddb3659e317e032
[openafs.git] / src / WINNT / afssvrcfg / 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>\r
11 \r
12 typedef class HOURGLASS\r
13 {\r
14    protected:\r
15       HCURSOR m_OldCursor;\r
16 \r
17    public:\r
18       HOURGLASS (LPCSTR idCursor = IDC_WAIT)\r
19       {\r
20          m_OldCursor = GetCursor();\r
21          SetCursor (LoadCursor (NULL, idCursor));\r
22       }\r
23 \r
24       virtual ~HOURGLASS (void)\r
25       {\r
26          SetCursor (m_OldCursor);\r
27       }\r
28 \r
29 } HOURGLASS, *PHOURGLASS;\r
30 \r