Create a branch for header work.
[reactos.git] / base / applications / rapps / installdlg.c
1 /*
2 * PROJECT: ReactOS Applications Manager
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: base/applications/rapps/installdlg.c
5 * PURPOSE: "Download and Install" Dialog
6 * PROGRAMMERS: Dmitry Chapyshev (dmitry@reactos.org)
7 */
8
9 #include "rapps.h"
10
11 static PAPPLICATION_INFO AppInfo;
12
13
14 static
15 INT_PTR CALLBACK
16 InstallDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
17 {
18 switch (Msg)
19 {
20 case WM_INITDIALOG:
21 {
22
23 }
24 break;
25
26 case WM_COMMAND:
27 {
28 switch (LOWORD(wParam))
29 {
30 case IDOK:
31 case IDCANCEL:
32 EndDialog(hDlg, LOWORD(wParam));
33 break;
34 }
35 }
36 break;
37 }
38
39 return FALSE;
40 }
41
42 BOOL
43 InstallApplication(INT Index)
44 {
45 if (!IS_AVAILABLE_ENUM(SelectedEnumType))
46 return FALSE;
47
48 AppInfo = (PAPPLICATION_INFO) ListViewGetlParam(Index);
49 if (!AppInfo) return FALSE;
50
51 DialogBox(hInst,
52 MAKEINTRESOURCE(IDD_INSTALL_DIALOG),
53 hMainWnd,
54 InstallDlgProc);
55
56 return TRUE;
57 }