Asked: 3 years 6 months 4 days 13 hours 10 minutes ago
Viewed: 734 times
Activity: 3 years 6 months 4 days 5 hours 28 minutes ago
0
Hi there, when I use the three lines of code from the FAQ to customise the application icon:
HICON icon{ LoadIcon((HINSTANCE)&__ImageBase, MAKEINTRESOURCE(MAINICON)) };
SendMessage((HWND)QueryService()->getWindow()->QueryService()->getHandle(), WM_SETICON, ICON_BIG, (LPARAM)icon);
SendMessage((HWND)QueryService()->getWindow()->QueryService()->getHandle(), WM_SETICON, ICON_SMALL, (LPARAM)icon);
I get the errors "pointer to incomplete class type is not allowed" and "use of undefined type 'nitisa::IWindow'", both referring to the QueryService call. What am I missing?
Thanks
Mark
See screenshots here: https://ibb.co/R2Km3Fd
https://ibb.co/WxPZKVK —
by Mark Bleyerveld at Jul 18, 2021, 7:48:43 AM