nt-makefile-clean-targets-20010917
[openafs.git] / src / WINNT / afssvrcfg / intro_page.cpp
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 /*
11  * INCLUDES _________________________________________________________________
12  *
13  */
14 extern "C" {
15 #include <afs/param.h>
16 #include <afs/stds.h>
17 }
18
19 #include "afscfg.h"
20 #include "resource.h"
21
22
23 /*
24  * DEFINITIONS _________________________________________________________________
25  *
26  */
27
28 static HWND hDlg = 0;                           // HWND for this page's dialog
29
30
31 /*
32  * PROTOTYPES _________________________________________________________________
33  *
34  */
35 static BOOL OnInitDialog(HWND hwndDlg);
36
37
38 /*
39  * EXPORTED FUNCTIONS _________________________________________________________________
40  *
41  */
42
43 /*
44  * Dialog Procs _________________________________________________________________
45  *
46  */
47 BOOL CALLBACK IntroPageDlgProc(HWND hRHS, UINT msg, WPARAM wp, LPARAM lp)
48 {
49     if (WizStep_Common_DlgProc (hRHS, msg, wp, lp))
50         return FALSE;
51
52         switch (msg) {
53                 case WM_INITDIALOG:
54                         OnInitDialog(hRHS);
55                         break;
56
57                 case WM_COMMAND:
58                         switch (LOWORD(wp)) {
59                         case IDNEXT:
60                                 g_pWiz->SetState(sidSTEP_TWO);
61                                 break;
62                         }
63                 break;
64     }
65
66     return FALSE;
67 }
68
69
70 /*
71  * STATIC FUNCTIONS _________________________________________________________________
72  *
73  */
74
75 /*
76  * Event Handler Functions _________________________________________________________________
77  *
78  */
79 static BOOL OnInitDialog(HWND hwndDlg)
80 {
81         hDlg = hwndDlg;
82
83         g_pWiz->EnableButtons(NEXT_BUTTON);
84
85         return TRUE;
86 }
87