2007-10-28 21:15:51 +01:00
|
|
|
#include "InstallerMain.h"
|
|
|
|
#include "Welcome.h"
|
|
|
|
#include "ChooseMethod.h"
|
|
|
|
|
|
|
|
INT_PTR CALLBACK WelcomeHandler(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
|
|
|
{
|
|
|
|
switch (message)
|
|
|
|
{
|
|
|
|
case WM_INITDIALOG:
|
|
|
|
{
|
2007-11-25 05:46:18 +01:00
|
|
|
SetToGlobalPosition(hDlg);
|
2007-10-28 21:15:51 +01:00
|
|
|
return (INT_PTR)TRUE;
|
|
|
|
}
|
|
|
|
case WM_COMMAND:
|
|
|
|
{
|
|
|
|
if (LOWORD(wParam) == ID_WELCOME_EXIT
|
|
|
|
|| LOWORD(wParam) == ID_CLOSE)
|
|
|
|
{
|
2007-11-25 05:46:18 +01:00
|
|
|
UpdateGlobalPosition(hDlg);
|
2007-10-28 21:15:51 +01:00
|
|
|
EndDialog(hDlg, NULL);
|
|
|
|
return (INT_PTR)TRUE;
|
|
|
|
}
|
|
|
|
else if (LOWORD(wParam) == ID_WELCOME_NEXT)
|
|
|
|
{
|
2007-11-25 05:46:18 +01:00
|
|
|
UpdateGlobalPosition(hDlg);
|
2007-10-28 21:15:51 +01:00
|
|
|
EndDialog(hDlg, (INT_PTR)DisplayChooseMethod);
|
|
|
|
return (INT_PTR)TRUE;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return (INT_PTR)FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
void *DisplayWelcome(HWND hWnd)
|
|
|
|
{
|
|
|
|
INT_PTR val;
|
|
|
|
|
|
|
|
if ((val = DialogBox(
|
|
|
|
g_hInstance,
|
|
|
|
MAKEINTRESOURCE(IDD_WELCOME),
|
|
|
|
hWnd,
|
|
|
|
WelcomeHandler)) == -1)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
return (void *)val;
|
|
|
|
}
|
|
|
|
|