The Webview Univeral Flutter package for Appeto SDK.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

43 lignes
1.2 KiB

  1. //
  2. // Created by yangbin on 2021/11/11.
  3. //
  4. #ifndef webview_universal_WINDOWS_UTILS_H_
  5. #define webview_universal_WINDOWS_UTILS_H_
  6. #include <windows.h>
  7. #include "wil/wrl.h"
  8. namespace webview_window {
  9. const auto MONITOR_CENTER = 0x0001; // center rect to monitor
  10. const auto MONITOR_CLIP = 0x0000; // clip rect to monitor
  11. const auto MONITOR_WORKAREA = 0x0002; // use monitor work area
  12. const auto MONITOR_AREA = 0x0000; // use monitor entire area
  13. //
  14. // ClipOrCenterRectToMonitor
  15. //
  16. // The most common problem apps have when running on a
  17. // multimonitor system is that they "clip" or "pin" windows
  18. // based on the SM_CXSCREEN and SM_CYSCREEN system metrics.
  19. // Because of app compatibility reasons these system metrics
  20. // return the size of the primary monitor.
  21. //
  22. // This shows how you use the multi-monitor functions
  23. // to do the same thing.
  24. //
  25. void ClipOrCenterRectToMonitor(LPRECT prc, UINT flags);
  26. void ClipOrCenterWindowToMonitor(HWND hwnd, UINT flags);
  27. bool SetWindowBackgroundTransparent(HWND hwnd);
  28. const wchar_t *RegisterWindowClass(LPCWSTR class_name, WNDPROC wnd_proc);
  29. void UnregisterWindowClass(LPCWSTR class_name);
  30. } // namespace webview_window
  31. #endif //webview_universal_WINDOWS_UTILS_H_