| 586 | } |
| 587 | |
| 588 | bool Alert::IsPasswordEdit(HWND edit_handle) { |
| 589 | std::vector<wchar_t> child_window_class(100); |
| 590 | ::GetClassName(edit_handle, &child_window_class[0], 100); |
| 591 | |
| 592 | if (wcscmp(&child_window_class[0], L"Edit") == 0) { |
| 593 | long window_long = ::GetWindowLong(edit_handle, GWL_STYLE); |
| 594 | bool is_password = (window_long & ES_PASSWORD) == ES_PASSWORD; |
| 595 | return is_password; |
| 596 | } |
| 597 | return false; |
| 598 | } |
| 599 | |
| 600 | BOOL CALLBACK Alert::FindDialogButton(HWND hwnd, LPARAM arg) { |
| 601 | Alert::DialogButtonFindInfo* button_info = reinterpret_cast<Alert::DialogButtonFindInfo*>(arg); |
nothing calls this directly
no test coverage detected