mirror of
https://github.com/reactos/reactos.git
synced 2024-11-11 01:04:11 +00:00
c424146e2c
svn path=/branches/cmake-bringup/; revision=48236
57 lines
1.1 KiB
C
57 lines
1.1 KiB
C
/*
|
|
* PROJECT: ReactOS Applications Manager
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
* FILE: base/applications/rapps/installdlg.c
|
|
* PURPOSE: "Download and Install" Dialog
|
|
* PROGRAMMERS: Dmitry Chapyshev (dmitry@reactos.org)
|
|
*/
|
|
|
|
#include "rapps.h"
|
|
|
|
static PAPPLICATION_INFO AppInfo;
|
|
|
|
|
|
static
|
|
INT_PTR CALLBACK
|
|
InstallDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
|
|
{
|
|
switch (Msg)
|
|
{
|
|
case WM_INITDIALOG:
|
|
{
|
|
|
|
}
|
|
break;
|
|
|
|
case WM_COMMAND:
|
|
{
|
|
switch (LOWORD(wParam))
|
|
{
|
|
case IDOK:
|
|
case IDCANCEL:
|
|
EndDialog(hDlg, LOWORD(wParam));
|
|
break;
|
|
}
|
|
}
|
|
break;
|
|
}
|
|
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL
|
|
InstallApplication(INT Index)
|
|
{
|
|
if (!IS_AVAILABLE_ENUM(SelectedEnumType))
|
|
return FALSE;
|
|
|
|
AppInfo = (PAPPLICATION_INFO) ListViewGetlParam(Index);
|
|
if (!AppInfo) return FALSE;
|
|
|
|
DialogBox(hInst,
|
|
MAKEINTRESOURCE(IDD_INSTALL_DIALOG),
|
|
hMainWnd,
|
|
InstallDlgProc);
|
|
|
|
return TRUE;
|
|
}
|