24 |
#endif |
#endif |
25 |
|
|
26 |
#include <windows.h> |
#include <windows.h> |
|
#include <windows.h> |
|
27 |
#include <commctrl.h> |
#include <commctrl.h> |
28 |
|
|
29 |
#include "../resource.h" |
#include "resource.h" |
30 |
#include "wptTypes.h" |
#include "wptTypes.h" |
31 |
#include "wptGPG.h" |
#include "wptGPG.h" |
32 |
#include "wptCommonCtl.h" |
#include "wptCommonCtl.h" |
350 |
separator_wnd_proc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam ) |
separator_wnd_proc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam ) |
351 |
{ |
{ |
352 |
static POINT last_mouse_pos; |
static POINT last_mouse_pos; |
353 |
|
RECT rect; |
354 |
|
|
355 |
if (msg == WM_CREATE) |
if (msg == WM_CREATE) |
356 |
SetWindowLong (hwnd, GWL_USERDATA, (long)(((CREATESTRUCT*)lparam)->lpCreateParams)); |
SetWindowLong (hwnd, GWL_USERDATA, (long)(((CREATESTRUCT*)lparam)->lpCreateParams)); |
357 |
|
|
358 |
switch (msg) { |
switch (msg) { |
359 |
case WM_PAINT: |
case WM_PAINT: |
360 |
PAINTSTRUCT ps; |
PAINTSTRUCT ps; |
|
RECT rect; |
|
361 |
HPEN hpen; |
HPEN hpen; |
362 |
|
|
363 |
GetClientRect (hwnd, &rect); |
GetClientRect (hwnd, &rect); |
411 |
if (wparam == MK_LBUTTON) { |
if (wparam == MK_LBUTTON) { |
412 |
struct km_info *kmi; |
struct km_info *kmi; |
413 |
POINT p; |
POINT p; |
|
RECT rect; |
|
414 |
|
|
415 |
if ((kmi = (struct km_info *)GetWindowLong (hwnd, GWL_USERDATA)) == NULL) |
if ((kmi = (struct km_info *)GetWindowLong (hwnd, GWL_USERDATA)) == NULL) |
416 |
break; |
break; |
1221 |
return TRUE; |
return TRUE; |
1222 |
} |
} |
1223 |
dialog_box_param( glob_hinst, (LPCSTR)IDD_WINPT_CARD_KEYGEN, dlg, |
dialog_box_param( glob_hinst, (LPCSTR)IDD_WINPT_CARD_KEYGEN, dlg, |
1224 |
card_keygen_dlg_proc, NULL, _("Card Key Generation"), |
card_keygen_dlg_proc, 0, _("Card Key Generation"), |
1225 |
IDS_WINPT_CARD_KEYGEN ); |
IDS_WINPT_CARD_KEYGEN ); |
1226 |
/* XXX: use new code */ |
/* XXX: use new code */ |
1227 |
if( keycache_get_reload() ) |
if( keycache_get_reload() ) |
1239 |
|
|
1240 |
case ID_KEYMISC_SENDRECV: |
case ID_KEYMISC_SENDRECV: |
1241 |
dialog_box_param( glob_hinst, (LPCSTR)IDD_WINPT_KEYSERVER, dlg, |
dialog_box_param( glob_hinst, (LPCSTR)IDD_WINPT_KEYSERVER, dlg, |
1242 |
keyserver_dlg_proc, NULL, _("Keyserver Access"), |
keyserver_dlg_proc, 0, _("Keyserver Access"), |
1243 |
IDS_WINPT_KEYSERVER ); |
IDS_WINPT_KEYSERVER ); |
1244 |
return TRUE; |
return TRUE; |
1245 |
|
|
1246 |
case ID_KEYMISC_GPGPREFS: |
case ID_KEYMISC_GPGPREFS: |
1247 |
dialog_box_param( glob_hinst, (LPCSTR)IDD_WINPT_GPGPREFS, dlg, |
dialog_box_param( glob_hinst, (LPCSTR)IDD_WINPT_GPGPREFS, dlg, |
1248 |
gpgprefs_dlg_proc, NULL, _("GnuPG Preferences"), |
gpgprefs_dlg_proc, 0, _("GnuPG Preferences"), |
1249 |
IDS_WINPT_GPGPREFS ); |
IDS_WINPT_GPGPREFS ); |
1250 |
return TRUE; |
return TRUE; |
1251 |
|
|
1252 |
case ID_KEYMISC_GPGOPT: |
case ID_KEYMISC_GPGOPT: |
1253 |
dialog_box_param( glob_hinst, (LPCSTR)IDD_WINPT_GPGOPT, dlg, |
dialog_box_param( glob_hinst, (LPCSTR)IDD_WINPT_GPGOPT, dlg, |
1254 |
gpgopt_dlg_proc, NULL, _("GnuPG Options" ), |
gpgopt_dlg_proc, 0, _("GnuPG Options" ), |
1255 |
IDS_WINPT_GPGOPT ); |
IDS_WINPT_GPGOPT ); |
1256 |
return TRUE; |
return TRUE; |
1257 |
|
|
1321 |
|
|
1322 |
case ID_KEYMISC_INFO: |
case ID_KEYMISC_INFO: |
1323 |
dialog_box_param( glob_hinst, (LPCSTR)IDD_WINPT_ABOUT, glob_hwnd, |
dialog_box_param( glob_hinst, (LPCSTR)IDD_WINPT_ABOUT, glob_hwnd, |
1324 |
about_winpt_dlg_proc, NULL, _("About WinPT"), |
about_winpt_dlg_proc, 0, _("About WinPT"), |
1325 |
IDS_WINPT_ABOUT ); |
IDS_WINPT_ABOUT ); |
1326 |
break; |
break; |
1327 |
|
|
1331 |
|
|
1332 |
case ID_KEYMISC_OT: |
case ID_KEYMISC_OT: |
1333 |
dialog_box_param( glob_hinst, (LPCTSTR)IDD_WINPT_OWNERTRUST, glob_hwnd, |
dialog_box_param( glob_hinst, (LPCTSTR)IDD_WINPT_OWNERTRUST, glob_hwnd, |
1334 |
ownertrust_dlg_proc, NULL, |
ownertrust_dlg_proc, 0, |
1335 |
_("Ownertrust"), IDS_WINPT_OWNERTRUST ); |
_("Ownertrust"), IDS_WINPT_OWNERTRUST ); |
1336 |
break; |
break; |
1337 |
|
|