Home GnuPG
Diffusion GpgOL 574ff72396de

Fix WM_CLOSE handling
574ff72396deUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Fix WM_CLOSE handling

* src/windowmessages.h (add_explorer, remove_explorer): Use LPDISPATCH
* src/windowmessages.cpp (add_explorer, remove_explorer): Update
accordingly.
(gpgol_hook): Use FindWindowEx to find all explorer windows.
* src/gpgoladdin.cpp (install_explorer_sinks): Register explorer
dispatch.
* src/explorer-events.cpp (EVENT_SINK_INVOKE): Remove explorer
on close.

At least with Outlook 2016 casting to IOlewindow and using
GetWindow did not work anymore. The returned handle was always 1.
FindWindowEx should work reliably.

Details

Provenance
aheineckeAuthored on Nov 11 2016, 3:07 PM
Parents
rOd77e4135ecc2: Fix UI Invalidation after selection change
Branches
Unknown
Tags
Unknown