Move window filter to separate function, filter more windows.

This commit is contained in:
Bartosz Sosnowski
2019-09-17 13:45:49 +02:00
committed by Bartosz Sosnowski
parent a54e4299aa
commit 487c485911
4 changed files with 32 additions and 21 deletions

View File

@@ -9,6 +9,9 @@ std::optional<RECT> get_button_pos(HWND hwnd);
std::optional<RECT> get_window_pos(HWND hwnd);
// Gets mouse postion.
std::optional<POINT> get_mouse_pos();
// Gets active window, filtering out all "non standard" windows like the taskbar, etc.
HWND get_filtered_active_window();
// Calculate sizes
int width(const RECT& rect);
int height(const RECT& rect);