MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / WndProcFileDialog

Method WndProcFileDialog

platform/windows/display_server_windows.cpp:474–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474LRESULT 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
493void DisplayServerWindows::_thread_fd_monitor(void *p_ud) {
494 DisplayServerWindows *ds = static_cast<DisplayServerWindows *>(get_singleton());

Callers 1

WndProcFileDialogFunction · 0.80

Calls 4

hasMethod · 0.45
is_setMethod · 0.45
ReleaseMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected