From eecf5c454298ea207831c5ef22bd9913cfcd573f Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sun, 8 Aug 2010 15:18:17 +0300 Subject: some black magic --- options.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'options.cpp') 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 -#include extern HINSTANCE hInst; @@ -52,14 +51,13 @@ int GpgOptInit(WPARAM wParam,LPARAM lParam) } static HWND hwndLoadPublicKey = NULL; -HWND hCaller; std::map 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); -- cgit v1.2.3