Hi there - in doing a little Windows-specific coding, I'm having trouble determining how to get a HWND window handle for the existing window in Max - as opposed to creating a new window for a GUI object. It seems like I'd want to use wind_gethwnd(), but I don't have a reference to any t_wind instances. Is there a way to get a reference to a t_wind for an existing window?
Are the window routines in the Max API designed to be used with a GUI object creating its own window? If my object is not of the GUI persuasion, what are my options?
Ultimately, I'm looking to grab a Windows message via WindowProc(), and saw the bit in the guide regarding "Subclassing the Window". Is there any example code out there in the world doing this? I suppose it would also ideally show how to properly pass on the messages that aren't used...