* Sync up to trunk head (r65426).
[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 static
14 INT_PTR CALLBACK
15 InstallDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
16 {
17 switch (Msg)
18 {
19 case WM_INITDIALOG:
20 {
21
22 }
23 break;
24
25 case WM_COMMAND:
26 {
27 switch (LOWORD(wParam))
28 {
29 case IDOK:
30 case IDCANCEL:
31 EndDialog(hDlg, LOWORD(wParam));
32 break;
33 }
34 }
35 break;
36 }
37
38 return FALSE;
39 }
40
41 BOOL
42 InstallApplication(INT Index)
43 {
44 if (!IS_AVAILABLE_ENUM(SelectedEnumType))
45 return FALSE;
46
47 AppInfo = (PAPPLICATION_INFO) ListViewGetlParam(Index);
48 if (!AppInfo) return FALSE;
49
50 DialogBox(hInst,
51 MAKEINTRESOURCE(IDD_INSTALL_DIALOG),
52 hMainWnd,
53 InstallDlgProc);
54
55 return TRUE;
56 }