Window id of calling process in dll

Just starting out? Need help? Post your questions and find answers here.
User avatar
Jac de Lad
Enthusiast
Enthusiast
Posts: 106
Joined: Wed Jul 15, 2020 7:10 am
Contact:

Window id of calling process in dll

Post by Jac de Lad »

Hello,
I am currently writing a DLL which creates a canvas. This canvas shall have a specific size, matching to the parent windows size. The calling program is not written in PureBasic, so I only have the handle, the same I would get from WinowID(window) in PureBasic. I need to know when the window is retired, to match the canvas. Can I do this within the DLL or am I depending on the calling program to handle this?