mirror of https://github.com/lianthony/NT4.0
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.
45 lines
692 B
45 lines
692 B
|
|
//
|
|
//---- Generic status struct
|
|
//
|
|
|
|
#define WAIT_TICK_TIME 100
|
|
#define MAX_STATUS_ICONS 12
|
|
#define WM_SPAWN_THREAD WM_USER+10
|
|
|
|
|
|
typedef struct StatusDialogInfoT
|
|
{
|
|
WORD ProgressControl;
|
|
WORD DialogControl;
|
|
int MinRange;
|
|
int MaxRange;
|
|
|
|
WCHAR * StatusText;
|
|
|
|
LPVOID WorkFunc;
|
|
DWORD WorkFuncExitCode;
|
|
|
|
HINSTANCE * hinst;
|
|
BOOL Center;
|
|
|
|
LPVOID Data;
|
|
} * PSTATUS_INFO, STATUS_INFO;
|
|
|
|
|
|
BOOL
|
|
DoOprationWithInProgressDialog(
|
|
PSTATUS_INFO StatisInfo,
|
|
HWND hDlg);
|
|
|
|
|
|
LRESULT CALLBACK
|
|
GenericStatus(
|
|
HWND hDlg,
|
|
UINT message,
|
|
WPARAM wParam,
|
|
LPARAM lParam);
|
|
|
|
BOOL
|
|
CenterDlg(
|
|
HWND hDlg);
|