Minimise Button with windowed app?

BlitzMax Forums/BlitzMax Programming/Minimise Button with windowed app?

There's a better way to get the Hwnd of the app window (not GadgetQuery, it doesn't involve MaxGUI)... but I've forgotten it.