From caad3a6b00d97038b22250720d9e619091c4b936 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Tue, 18 May 2021 21:25:34 +1000 Subject: [PATCH] [windows] add icon to main window --- v2/internal/ffenestri/ffenestri_windows.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/v2/internal/ffenestri/ffenestri_windows.cpp b/v2/internal/ffenestri/ffenestri_windows.cpp index 49f6e46f..e4129b62 100644 --- a/v2/internal/ffenestri/ffenestri_windows.cpp +++ b/v2/internal/ffenestri/ffenestri_windows.cpp @@ -328,6 +328,8 @@ void Run(struct Application* app, int argc, char **argv) { wc.hInstance = hInstance; wc.lpszClassName = (LPCWSTR)"ffenestri"; wc.lpfnWndProc = WndProc; + wc.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(100)); + wc.hIconSm = LoadIcon(hInstance, MAKEINTRESOURCE(100)); // TODO: Menu // wc.lpszMenuName = nullptr;