Rev | Line | |
---|
[32] | 1 | #pragma once
|
---|
| 2 |
|
---|
| 3 | #include "WindowData.h"
|
---|
| 4 | #include <map>
|
---|
| 5 | #include <vector>
|
---|
| 6 |
|
---|
| 7 | BOOL CALLBACK EnumChildren(HWND hwnd, LPARAM lParam);
|
---|
| 8 |
|
---|
| 9 | class WindowFinder
|
---|
| 10 | {
|
---|
| 11 | private:
|
---|
| 12 | WindowData * currentWindow;
|
---|
| 13 |
|
---|
| 14 | std::vector<std::pair<HWND,int>> * scores;
|
---|
| 15 |
|
---|
| 16 | std::vector<HWND> * parentHandles;
|
---|
| 17 |
|
---|
| 18 | int maxScore;
|
---|
| 19 |
|
---|
| 20 | bool evalPopup;
|
---|
| 21 |
|
---|
| 22 | public:
|
---|
| 23 | WindowFinder(void);
|
---|
| 24 | ~WindowFinder(void);
|
---|
| 25 |
|
---|
| 26 | HWND find(WindowData * winData);
|
---|
| 27 |
|
---|
| 28 | void setEqualityScore(HWND hwnd, int resourceId, wchar_t * windowName, wchar_t * className);
|
---|
| 29 |
|
---|
| 30 | bool isCurrentPopup();
|
---|
| 31 |
|
---|
| 32 | };
|
---|
Note: See
TracBrowser
for help on using the repository browser.