Windows: AFSVolSync creationDate based readonly volume versioning
[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 #include <winsock2.h>
15 #include <ws2tcpip.h>
16
17 extern "C" {
18 #include <afs/param.h>
19 #include <afs/stds.h>
20 }
21
22 #include "afscfg.h"
23 #include "resource.h"
24
25
26 /*
27  * DEFINITIONS _________________________________________________________________
28  *
29  */
30
31 static HWND hDlg = 0;                           // HWND for this page's dialog
32
33
34 /*
35  * PROTOTYPES _________________________________________________________________
36  *
37  */
38 static BOOL OnInitDialog(HWND hwndDlg);
39
40
41 /*
42  * EXPORTED FUNCTIONS _________________________________________________________________
43  *
44  */
45
46 /*
47  * Dialog Procs _________________________________________________________________
48  *
49  */
50 BOOL CALLBACK IntroPageDlgProc(HWND hRHS, UINT msg, WPARAM wp, LPARAM lp)
51 {
52     if (WizStep_Common_DlgProc (hRHS, msg, wp, lp))
53         return FALSE;
54
55     switch (msg) {
56     case WM_INITDIALOG:
57         OnInitDialog(hRHS);
58         break;
59
60     case WM_COMMAND:
61         switch (LOWORD(wp)) {
62         case IDNEXT:
63             g_pWiz->SetState(sidSTEP_TWO);
64             break;
65         }
66         break;
67     }   
68
69     return FALSE;
70 }
71
72
73 /*
74  * STATIC FUNCTIONS _________________________________________________________________
75  *
76  */
77
78 /*
79  * Event Handler Functions _________________________________________________________________
80  *
81  */
82 static BOOL OnInitDialog(HWND hwndDlg)
83 {
84     hDlg = hwndDlg;
85
86     g_pWiz->EnableButtons(NEXT_BUTTON);
87
88     return TRUE;
89 }
90