flutter_window_close
flutter_window_close copied to clipboard
[windows] Use existing window proc delegation & HWND retrieval APIs from Flutter
- feat: expose
FlutterWindowClose.destroyWindowfor customized usage. - fix: use
flutter::PluginRegistrarWindows::RegisterTopLevelWindowProcDelegatefor proc delegation & improveHWNDretrieval.- Refactored Windows implementation use make use of
flutter::PluginRegistrarWindows::RegisterTopLevelWindowProcDelegateinstead of changing GWLP_WNDPROC. This gives other plugins opportunity to delegate/listen to window messages as-well. - Replaced
GetActiveWindowwith public API present in Flutter already.GetActiveWindowcan result in unpredicted behaviors. - Improved code structure & followed Google Style Guide for C++.
- Refactored Windows implementation use make use of
https://github.com/zonble/flutter_window_close/blob/79e358db9e1edaa9dc147a7e31d73b0b3ba02cdb/windows/flutter_window_close_plugin.cpp#L73-L75