Translated using Weblate (Chinese (Simplified))
[cygwin-setup.git] / postinstallresults.cc
blob2409f38d2c4756a04e48bdf3ddeb7a13e78dcde8
1 /*
2 * Copyright (c) 2010 Red Hat, Inc.
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
10 * http://www.gnu.org/
14 #include "postinstallresults.h"
15 #include "resource.h"
17 // ---------------------------------------------------------------------------
18 // implements class PostInstallResultsPage
20 // postinstall errors page
21 // postinstall script running itself is part of the progress page
22 // ---------------------------------------------------------------------------
24 // Sizing information.
25 static ControlAdjuster::ControlInfo PostInstallResultsControlsInfo[] = {
26 {IDC_POSTINSTALL_EDIT, CP_STRETCH, CP_STRETCH},
27 {0, CP_LEFT, CP_TOP}
30 PostInstallResultsPage::PostInstallResultsPage ()
32 sizeProcessor.AddControlInfo (PostInstallResultsControlsInfo);
35 bool
36 PostInstallResultsPage::Create ()
38 return PropertyPage::Create (IDD_POSTINSTALL);
41 void
42 PostInstallResultsPage::OnInit ()
44 // set the edit-area to a larger font
45 SetDlgItemFont(IDC_POSTINSTALL_EDIT, "MS Shell Dlg", 10);
48 void
49 PostInstallResultsPage::OnActivate()
51 SetDlgItemText(GetHWND(), IDC_POSTINSTALL_EDIT, _results.c_str ());
54 long
55 PostInstallResultsPage::OnNext ()
57 return IDD_DESKTOP;
60 long
61 PostInstallResultsPage::OnBack ()
63 return 0;
66 long
67 PostInstallResultsPage::OnUnattended ()
69 // in unattended mode, we have logged the errors, so just carry on
70 // XXX: would be nice to set program exit status if errors occured...
71 return 0;