mirror of
https://github.com/godotengine/godot.git
synced 2024-12-15 10:12:40 +08:00
Merge pull request #57736 from TechnicalSoup/Patch-3
This commit is contained in:
commit
be1adf491a
@ -546,6 +546,15 @@ DisplayServer::WindowID DisplayServerWindows::create_sub_window(WindowMode p_mod
|
||||
wd.no_focus = true;
|
||||
}
|
||||
|
||||
// Inherit icons from MAIN_WINDOW for all sub windows.
|
||||
HICON mainwindow_icon = (HICON)SendMessage(windows[MAIN_WINDOW_ID].hWnd, WM_GETICON, ICON_SMALL, 0);
|
||||
if (mainwindow_icon) {
|
||||
SendMessage(windows[window_id].hWnd, WM_SETICON, ICON_SMALL, (LPARAM)mainwindow_icon);
|
||||
}
|
||||
mainwindow_icon = (HICON)SendMessage(windows[MAIN_WINDOW_ID].hWnd, WM_GETICON, ICON_BIG, 0);
|
||||
if (mainwindow_icon) {
|
||||
SendMessage(windows[window_id].hWnd, WM_SETICON, ICON_BIG, (LPARAM)mainwindow_icon);
|
||||
}
|
||||
return window_id;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user