Error using SendMessage QueryService()


Author: Mark Bleyerveld Asked: 10 months 6 days 11 hours 45 minutes ago Viewed: 238 times Activity: 10 months 6 days 4 hours 3 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

add comment


0

Answered by Support at Jul 18, 2021, 3:26:47 PM

The answer in the FAQ a little bit outdated. On the following screenshot you may see how it works: https://prnt.sc/1cn2xa1

add comment