| 573 | } |
| 574 | |
| 575 | bool Alert::IsSimpleEdit(HWND edit_handle) { |
| 576 | std::vector<wchar_t> child_window_class(100); |
| 577 | ::GetClassName(edit_handle, &child_window_class[0], 100); |
| 578 | |
| 579 | if (wcscmp(&child_window_class[0], L"Edit") == 0) { |
| 580 | long window_long = ::GetWindowLong(edit_handle, GWL_STYLE); |
| 581 | bool is_read_only = (window_long & ES_READONLY) == ES_READONLY; |
| 582 | bool is_password = (window_long & ES_PASSWORD) == ES_PASSWORD; |
| 583 | return !is_read_only && !is_password; |
| 584 | } |
| 585 | return false; |
| 586 | } |
| 587 | |
| 588 | bool Alert::IsPasswordEdit(HWND edit_handle) { |
| 589 | std::vector<wchar_t> child_window_class(100); |
nothing calls this directly
no test coverage detected