]>
Commit | Line | Data |
---|---|---|
46187c8f | 1 | /* |
ab57ceaa | 2 | * Copyright (c) 2001, Gary R. Van Sickle. |
46187c8f DD |
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 | * | |
ab57ceaa | 12 | * Written by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net> |
46187c8f DD |
13 | * |
14 | */ | |
15 | ||
ab57ceaa RC |
16 | // This is the implementation of the SplashPage class. Since the splash page |
17 | // has little to do, there's not much here. | |
46187c8f | 18 | |
46187c8f | 19 | #include <stdio.h> |
13d27274 | 20 | #include "version.h" |
ab57ceaa RC |
21 | #include "resource.h" |
22 | #include "cistring.h" | |
23 | #include "splash.h" | |
46187c8f | 24 | |
ab57ceaa RC |
25 | bool |
26 | SplashPage::Create () | |
46187c8f | 27 | { |
ab57ceaa | 28 | return PropertyPage::Create (IDD_SPLASH); |
46187c8f DD |
29 | } |
30 | ||
ab57ceaa RC |
31 | void |
32 | SplashPage::OnInit () | |
46187c8f | 33 | { |
ab57ceaa | 34 | cistring ver; |
46187c8f | 35 | |
ab57ceaa | 36 | ver.Format (IDS_VERSION_INFO, version[0] ? version : "[unknown]"); |
46187c8f | 37 | |
ab57ceaa | 38 | SetWindowText (GetDlgItem (IDC_VERSION), ver.c_str ()); |
b7301c43 RC |
39 | |
40 | // Set the font for the IDC_STATIC_WELCOME_TITLE | |
41 | SetDlgItemFont(IDC_STATIC_WELCOME_TITLE, "Ariel", 12, FW_BOLD); | |
46187c8f | 42 | } |