Process Hacker
options.c
Go to the documentation of this file.
1 /*
2  * Process Hacker Plugins -
3  * Update Checker Plugin
4  *
5  * Copyright (C) 2011-2015 dmex
6  *
7  * This file is part of Process Hacker.
8  *
9  * Process Hacker is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation, either version 3 of the License, or
12  * (at your option) any later version.
13  *
14  * Process Hacker is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with Process Hacker. If not, see <http://www.gnu.org/licenses/>.
21  */
22 
23 #include "updater.h"
24 
25 INT_PTR CALLBACK OptionsDlgProc(
26  _In_ HWND hwndDlg,
27  _In_ UINT uMsg,
28  _In_ WPARAM wParam,
29  _In_ LPARAM lParam
30  )
31 {
32  switch (uMsg)
33  {
34  case WM_INITDIALOG:
35  {
37  Button_SetCheck(GetDlgItem(hwndDlg, IDC_AUTOCHECKBOX), BST_CHECKED);
38  }
39  break;
40  case WM_COMMAND:
41  {
42  switch (GET_WM_COMMAND_ID(wParam, lParam))
43  {
44  case IDCANCEL:
45  EndDialog(hwndDlg, IDCANCEL);
46  break;
47  case IDOK:
48  {
51  Button_GetCheck(GetDlgItem(hwndDlg, IDC_AUTOCHECKBOX)) == BST_CHECKED);
52 
53  EndDialog(hwndDlg, IDOK);
54  }
55  break;
56  }
57  }
58  break;
59  }
60 
61  return FALSE;
62 }