]> cygwin.com Git - cygwin-apps/setup.git/blob - splash.cc
* Makefile.am: Treat libgetopt++ as full-fledged SUBDIRS.
[cygwin-apps/setup.git] / splash.cc
1 /*
2 * Copyright (c) 2001, 2002, 2003 Gary R. Van Sickle.
3 *
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.
8 *
9 * A copy of the GNU General Public License can be found at
10 * http://www.gnu.org/
11 *
12 * Written by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
13 *
14 */
15
16 /* This is the implementation of the SplashPage class. Since the splash page
17 * has little to do, there's not much here. */
18
19 #include "setup_version.h"
20 #include "resource.h"
21 #include "splash.h"
22
23 static ControlAdjuster::ControlInfo SplashControlsInfo[] = {
24 { IDC_SPLASH_TEXT, CP_STRETCH, CP_STRETCH },
25 { IDC_SPLASH_ICON, CP_LEFT, CP_BOTTOM },
26 { IDC_VERSION, CP_LEFT, CP_BOTTOM },
27 { IDC_SPLASH_COPYR, CP_LEFT, CP_BOTTOM },
28 { IDC_SPLASH_URL, CP_LEFT, CP_BOTTOM },
29 {0, CP_LEFT, CP_TOP}
30 };
31
32 SplashPage::SplashPage ()
33 {
34 sizeProcessor.AddControlInfo (SplashControlsInfo);
35 }
36
37 bool
38 SplashPage::Create ()
39 {
40 return PropertyPage::Create (IDD_SPLASH);
41 }
42
43 void
44 SplashPage::OnInit ()
45 {
46 std::string ver = "Setup.exe version ";
47 ver += (setup_version[0] ? setup_version : "[unknown]");
48 ::SetWindowText (GetDlgItem (IDC_VERSION), ver.c_str());
49 makeClickable (IDC_SPLASH_URL, "http://www.cygwin.com");
50 }
This page took 0.036973 seconds and 5 git commands to generate.