Asked: 3 years 4 months 3 days 4 hours 7 minutes ago
Viewed: 698 times
Activity: 3 years 4 months 2 days 20 hours 25 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