]>
cygwin.com Git - cygwin-apps/setup.git/blob - threebar.h
2 * Copyright (c) 2001, Gary R. Van Sickle.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * A copy of the GNU General Public License can be found at
12 * Written by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
16 #ifndef SETUP_THREEBAR_H
17 #define SETUP_THREEBAR_H
19 // This is the header for the ThreeBarProgressPage class. It is a fairly generic
20 // progress indicator property page with three progress bars.
26 #define WM_APP_START_DOWNLOAD WM_APP+0
27 #define WM_APP_DOWNLOAD_THREAD_COMPLETE WM_APP+1
28 #define WM_APP_START_INSTALL WM_APP+2
29 #define WM_APP_INSTALL_THREAD_COMPLETE WM_APP+3
30 #define WM_APP_START_SITE_INFO_DOWNLOAD WM_APP+4
31 #define WM_APP_SITE_INFO_DOWNLOAD_COMPLETE WM_APP+5
32 #define WM_APP_START_SETUP_INI_DOWNLOAD WM_APP+6
33 #define WM_APP_SETUP_INI_DOWNLOAD_COMPLETE WM_APP+7
34 // desktop.h: WM_APP_UNATTENDED_FINISH WM_APP+8
35 #define WM_APP_START_POSTINSTALL WM_APP+9
36 #define WM_APP_POSTINSTALL_THREAD_COMPLETE WM_APP+10
38 class ThreeBarProgressPage
:public PropertyPage
53 void EnableSingleBar (bool enable
= true);
56 ThreeBarProgressPage ()
59 virtual ~ ThreeBarProgressPage ()
65 virtual void OnInit ();
66 virtual void OnActivate ();
67 virtual bool OnMessageApp (UINT uMsg
, WPARAM wParam
, LPARAM lParam
);
68 virtual long OnUnattended ()
73 void SetText1 (const TCHAR
* t
);
74 void SetText2 (const TCHAR
* t
);
75 void SetText3 (const TCHAR
* t
);
76 void SetText4 (const TCHAR
* t
);
78 void SetBar1 (long progress
, long max
= 100);
79 void SetBar2 (long progress
, long max
= 100);
80 void SetBar3 (long progress
, long max
= 100);
82 void SetActivateTask (int t
)
89 #endif /* SETUP_THREEBAR_H */
This page took 0.038667 seconds and 5 git commands to generate.