Last updated:
22. July 2001

User Interface Programming

(Start main menu) Home ­ Articles ­ Book ­ Resources (End main menu)

WaitCurs.h: Listing 1


(Start sub-menu)

Java

User Interface Programming Column

Features

Tech Tips

Reviews

Code Archive


Range Slider

Splitter Controls and Dialog Resizing


 

Feedback…

My blog »

(End sub-menu)

//
// WaitCurs.h: Declaration and inline implementation
//
 
class WaitCursor {
public:
    WaitCursor();
    ~WaitCursor();
    void Restore();
};
 
//
// Inline functions:
//
 
inline WaitCursor::WaitCursor() {
    ::SetCursor( ::LoadCursor( 0, IDC_WAIT ) ); // or call Restore...
}
 
inline void WaitCursor::Restore() {
    ::SetCursor( ::LoadCursor( 0, IDC_WAIT ) );
}
 
// end of file

(Start bottom menu)

TopHomeArticlesBookResources
Win­dows De­vel­oper Maga­zineR&D BooksCMP Books
Amazon.comAmazon.co.ukContact Petter Hesselberg

(End bottom menu)

WaitCurs.cpp

Back to Article