319 |
winpt_main_proc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) |
winpt_main_proc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) |
320 |
{ |
{ |
321 |
static NOTIFYICONDATA NID; |
static NOTIFYICONDATA NID; |
322 |
|
static DWORD cookie; |
323 |
static int use_hotkey = 0; |
static int use_hotkey = 0; |
324 |
INITCOMMONCONTROLSEX cce; |
INITCOMMONCONTROLSEX cce; |
325 |
LPARAM param; |
LPARAM param; |
349 |
cce.dwSize = sizeof (INITCOMMONCONTROLSEX); |
cce.dwSize = sizeof (INITCOMMONCONTROLSEX); |
350 |
cce.dwICC = ICC_DATE_CLASSES; |
cce.dwICC = ICC_DATE_CLASSES; |
351 |
InitCommonControlsEx (&cce); |
InitCommonControlsEx (&cce); |
352 |
|
html_help_init (&cookie); |
353 |
LoadLibrary ("RichEd32.Dll"); |
LoadLibrary ("RichEd32.Dll"); |
354 |
break; |
break; |
355 |
|
|
367 |
hotkeys_unregister (hwnd); |
hotkeys_unregister (hwnd); |
368 |
PTD_delete (); |
PTD_delete (); |
369 |
agent_flush_cache (); |
agent_flush_cache (); |
370 |
|
html_help_deinit (cookie); |
371 |
if (!gpg_clip_istext_avail (&has_data) && has_data) { |
if (!gpg_clip_istext_avail (&has_data) && has_data) { |
372 |
int chk = get_reg_winpt_flag ("WipeClipboard"); |
int chk = get_reg_winpt_flag ("WipeClipboard"); |
373 |
if (chk == -1 && msg != WM_ENDSESSION) |
if (chk == -1 && msg != WM_ENDSESSION) |