| 472 | } |
| 473 | |
| 474 | LRESULT DisplayServerWindows::WndProcFileDialog(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { |
| 475 | MutexLock lock(file_dialog_mutex); |
| 476 | if (file_dialog_wnd.has(hWnd)) { |
| 477 | if (file_dialog_wnd[hWnd]->close_requested.is_set()) { |
| 478 | IPropertyStore *prop_store; |
| 479 | HRESULT hr = SHGetPropertyStoreForWindow(hWnd, IID_IPropertyStore, (void **)&prop_store); |
| 480 | if (hr == S_OK) { |
| 481 | PROPVARIANT val; |
| 482 | PropVariantInit(&val); |
| 483 | prop_store->SetValue(PKEY_AppUserModel_ID, val); |
| 484 | prop_store->Release(); |
| 485 | } |
| 486 | DestroyWindow(hWnd); |
| 487 | file_dialog_wnd.erase(hWnd); |
| 488 | } |
| 489 | } |
| 490 | return DefWindowProcW(hWnd, uMsg, wParam, lParam); |
| 491 | } |
| 492 | |
| 493 | void DisplayServerWindows::_thread_fd_monitor(void *p_ud) { |
| 494 | DisplayServerWindows *ds = static_cast<DisplayServerWindows *>(get_singleton()); |
no test coverage detected