Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions gxruntime/gxruntime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ gxRuntime* gxRuntime::openRuntime(HINSTANCE hinst, const std::string& cmd_line,
run_flag = true;

HWND hwnd = CreateWindowEx(0, "Blitz Runtime Class", " ", WS_CAPTION, 0, 0, 0, 0, 0, 0, 0, 0);

if (HANDLE iconSm = LoadImage(hinst, MAKEINTRESOURCE(1), IMAGE_ICON, 16, 16, LR_SHARED)) {
SendMessage(hwnd, WM_SETICON, ICON_SMALL, (LPARAM)iconSm);
if (HANDLE iconLg = LoadImage(hinst, MAKEINTRESOURCE(1), IMAGE_ICON, 256, 256, LR_SHARED)) {
SendMessage(hwnd, WM_SETICON, ICON_BIG, (LPARAM)iconLg);
}
}

UpdateWindow(hwnd);

runtime = new gxRuntime(hinst, cmd_line, hwnd);
Expand Down
Loading