Files
systeminformer/tools/CustomSetupTool/CustomSetupTool/errorpage.c
T

61 lines
1.7 KiB
C

/*
* Process Hacker Toolchain -
* project setup
*
* Copyright (C) 2017 dmex
*
* This file is part of Process Hacker.
*
* Process Hacker is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Process Hacker is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Process Hacker. If not, see <http://www.gnu.org/licenses/>.
*/
#include <setup.h>
INT_PTR CALLBACK SetupErrorPage_WndProc(
_In_ HWND hwndDlg,
_In_ UINT uMsg,
_Inout_ WPARAM wParam,
_Inout_ LPARAM lParam
)
{
PPH_SETUP_CONTEXT context = NULL;
if (uMsg == WM_INITDIALOG)
{
context = GetProp(GetParent(hwndDlg), L"SetupContext");
SetProp(hwndDlg, L"Context", (HANDLE)context);
}
else
{
context = (PPH_SETUP_CONTEXT)GetProp(hwndDlg, L"Context");
}
if (context == NULL)
return FALSE;
switch (uMsg)
{
case WM_INITDIALOG:
{
SetupLoadImage(GetDlgItem(hwndDlg, IDC_PROJECT_ICON), MAKEINTRESOURCE(IDB_PNG1));
SetupInitializeFont(GetDlgItem(hwndDlg, IDC_MAINHEADER), -18, FW_SEMIBOLD);
SetupInitializeFont(GetDlgItem(hwndDlg, IDC_SUBHEADER), 0, FW_NORMAL);
EnableThemeDialogTexture(hwndDlg, ETDT_ENABLETAB);
}
break;
}
return FALSE;
}