]>
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" | |
f9e903a3 RC |
24 | #include "AntiVirus.h" |
25 | #include "dialog.h" | |
46187c8f | 26 | |
ab57ceaa RC |
27 | bool |
28 | SplashPage::Create () | |
46187c8f | 29 | { |
ab57ceaa | 30 | return PropertyPage::Create (IDD_SPLASH); |
46187c8f DD |
31 | } |
32 | ||
ab57ceaa RC |
33 | void |
34 | SplashPage::OnInit () | |
46187c8f | 35 | { |
ab57ceaa | 36 | cistring ver; |
46187c8f | 37 | |
ab57ceaa | 38 | ver.Format (IDS_VERSION_INFO, version[0] ? version : "[unknown]"); |
46187c8f | 39 | |
58db1046 | 40 | ::SetWindowText (GetDlgItem (IDC_VERSION), ver.c_str ()); |
b7301c43 RC |
41 | |
42 | // Set the font for the IDC_STATIC_WELCOME_TITLE | |
43 | SetDlgItemFont(IDC_STATIC_WELCOME_TITLE, "Ariel", 12, FW_BOLD); | |
46187c8f | 44 | } |
f9e903a3 RC |
45 | |
46 | long | |
47 | SplashPage::OnNext() | |
48 | { | |
49 | if (!AntiVirus::Show()) | |
50 | return IDD_SOURCE; | |
51 | return 0; | |
52 | } | |
53 |