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.
34 lines
982 B
34 lines
982 B
//------------------------------------------------------------------------
|
|
// UI.H
|
|
//
|
|
// Commonly used UI routines, classes, etc.
|
|
//------------------------------------------------------------------------
|
|
|
|
#if !defined(__UI_H__)
|
|
#define __UI_H__
|
|
|
|
|
|
#define vUIPStatusShow(a,b)
|
|
|
|
VOID FAR PASCAL vUIMsgInit( );
|
|
int FAR PASCAL iUIErrMemDlg( );
|
|
|
|
/* The wait cursor is used to cause an hourglass for the duration of a
|
|
* routine. The constructor sets the cursor to the hourglass, holding
|
|
* the previous. The destructor recovers the original cursor (or arrow if
|
|
* none).
|
|
*/
|
|
|
|
class WaitCursor
|
|
{
|
|
public :
|
|
WaitCursor () { m_Cursor = SetCursor(LoadCursor(NULL, IDC_WAIT));};
|
|
~WaitCursor () { if (m_Cursor != NULL)
|
|
SetCursor (m_Cursor);
|
|
else
|
|
SetCursor(LoadCursor(NULL, IDC_ARROW)); };
|
|
private :
|
|
HCURSOR m_Cursor;
|
|
};
|
|
|
|
#endif // __UI_H__
|