summaryrefslogtreecommitdiff
path: root/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'options.cpp')
-rw-r--r--options.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/options.cpp b/options.cpp
index f160500..cf0b75f 100644
--- a/options.cpp
+++ b/options.cpp
@@ -16,7 +16,6 @@
#include "commonheaders.h"
#include <uxtheme.h>
-#include <map>
extern HINSTANCE hInst;
@@ -52,14 +51,13 @@ int GpgOptInit(WPARAM wParam,LPARAM lParam)
}
static HWND hwndLoadPublicKey = NULL;
-HWND hCaller;
std::map<int, HANDLE> user_data;
int item_num = 0;
HWND hwndList_p;
-void ShowLoadPublicKeyDialog(HWND hwndCaller);
+void ShowLoadPublicKeyDialog();
static BOOL CALLBACK DlgProcGpgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
HWND hwndList=GetDlgItem(hwndDlg, IDC_USERLIST);
@@ -123,7 +121,7 @@ static BOOL CALLBACK DlgProcGpgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA
switch (LOWORD(wParam))
{
case IDC_LOAD_KEY_BUTTON:
- ShowLoadPublicKeyDialog(hwndDlg);
+ ShowLoadPublicKeyDialog();
return TRUE;
default:
break;
@@ -278,9 +276,8 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP
return FALSE;
}
-void ShowLoadPublicKeyDialog(HWND hwndCaller)
+void ShowLoadPublicKeyDialog()
{
- hCaller = hwndCaller;
if (hwndLoadPublicKey == NULL)
{
hwndLoadPublicKey = CreateDialog(hInst, MAKEINTRESOURCE(IDD_LOAD_PUBLIC_KEY), NULL, DlgProcLoadPublicKey);