1 |
/* wptKeyEditOwnertrustDlg.cpp - Key onwertrust dialog |
/* wptKeyEditOwnertrustDlg.cpp - Key onwertrust dialog |
2 |
* Copyright (C) 2000-2006 Timo Schulz |
* Copyright (C) 2000-2006, 2009 Timo Schulz |
3 |
* |
* |
4 |
* This file is part of WinPT. |
* This file is part of WinPT. |
5 |
* |
* |
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
* GNU General Public License for more details. |
* GNU General Public License for more details. |
|
* |
|
|
* You should have received a copy of the GNU General Public License |
|
|
* along with WinPT; if not, write to the Free Software Foundation, |
|
|
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
15 |
*/ |
*/ |
16 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
17 |
#include <config.h> |
#include <config.h> |
65 |
SetForegroundWindow (dlg); |
SetForegroundWindow (dlg); |
66 |
return TRUE; |
return TRUE; |
67 |
|
|
68 |
|
case WM_DESTROY: |
69 |
|
balloon_msg_disable (); |
70 |
|
break; |
71 |
|
|
72 |
case WM_COMMAND: |
case WM_COMMAND: |
73 |
switch (LOWORD (wparam)) { |
switch (LOWORD (wparam)) { |
74 |
case IDCANCEL: |
case IDCANCEL: |
79 |
lb = GetDlgItem (dlg, IDC_KEYTRUST_TRUST); |
lb = GetDlgItem (dlg, IDC_KEYTRUST_TRUST); |
80 |
index = listbox_get_cursel (lb) + 1; |
index = listbox_get_cursel (lb) + 1; |
81 |
if (index < 1 || index > 5) { |
if (index < 1 || index > 5) { |
82 |
msg_box (dlg, _("Please choose one entry."), |
show_balloon_msg (GetDlgItem (dlg, IDC_KEYTRUST_TRUST), |
83 |
_("Ownertrust"), MB_ERR); |
_("Please choose one entry."), IDI_ERROR); |
84 |
return TRUE; |
return TRUE; |
85 |
} |
} |
86 |
/* check if there is a corresponding secret key for the public key. */ |
/* check if there is a corresponding secret key for the public key. */ |