mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
pstats: Set window icon for PStats on Windows
Just using a stock image from imageres.dll for now, but it makes it a easier to spot and distinguish from other Panda3D apps in the task bar.
This commit is contained in:
parent
5fcc04ba7f
commit
5032d41f43
@ -725,12 +725,15 @@ register_window_class(HINSTANCE application) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HMODULE imageres = LoadLibraryExA("imageres.dll", 0, LOAD_LIBRARY_AS_DATAFILE);
|
||||||
|
|
||||||
WNDCLASS wc;
|
WNDCLASS wc;
|
||||||
|
|
||||||
ZeroMemory(&wc, sizeof(WNDCLASS));
|
ZeroMemory(&wc, sizeof(WNDCLASS));
|
||||||
wc.style = 0;
|
wc.style = 0;
|
||||||
wc.lpfnWndProc = (WNDPROC)static_window_proc;
|
wc.lpfnWndProc = (WNDPROC)static_window_proc;
|
||||||
wc.hInstance = application;
|
wc.hInstance = application;
|
||||||
|
wc.hIcon = LoadIcon(imageres, MAKEINTRESOURCE(150));
|
||||||
wc.hCursor = LoadCursor(nullptr, IDC_ARROW);
|
wc.hCursor = LoadCursor(nullptr, IDC_ARROW);
|
||||||
wc.hbrBackground = (HBRUSH)COLOR_WINDOW;
|
wc.hbrBackground = (HBRUSH)COLOR_WINDOW;
|
||||||
wc.lpszMenuName = nullptr;
|
wc.lpszMenuName = nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user