leaving this here.

This commit is contained in:
Hero
2025-08-18 02:08:21 +03:00
parent 000546e9ff
commit 283929b1a2
@@ -185,6 +185,16 @@ final class Windows {
')
public static function setWindowTitleColor(title:String, color:Array<Int>) {}
@:functionCode('
HWND window = GetConsoleWindow();
HICON smallIcon = (HICON) LoadImage(NULL, path, IMAGE_ICON, 16, 16, LR_LOADFROMFILE);
HICON icon = (HICON) LoadImage(NULL, path, IMAGE_ICON, 0, 0, LR_LOADFROMFILE | LR_DEFAULTSIZE);
SendMessage(window, WM_SETICON, ICON_SMALL, (LPARAM)smallIcon);
SendMessage(window, WM_SETICON, ICON_BIG, (LPARAM)icon);
')
public static function setWindowIcon(path:String) {}
@:functionCode('
// https://stackoverflow.com/questions/15543571/allocconsole-not-displaying-cout