How do I call GetWindowLong to get an HINSTANCE?
I'm following this tutorial for making a button, and I'm up to this part:
(HINSTANCE)GetWindowLong(m_hwnd, GWL_HINSTANCE)
What should I call from this library's API to achieve the same effect?
Are you talking about the missing constant GWL_HINSTANCE? for now just define it yourself or use hsc2hs.
create a file that ends in .hsc and just #include <Windows.h> and use {#const GWL_HINSTANCE}.
I'll add the remaining constants later. Thanks for pointing it out.
Not just the constant - I wasn't able to find the GetWindowLong function (or any equivalent) by searching this repo, and I'm not sure where in the Win32 package it resides.
https://hackage.haskell.org/package/Win32-2.8.4.0/docs/Graphics-Win32-LayeredWindow.html as msdn says GetWindowLong is an obsolete api. GetWindowLongPtr should be used.