I think there's no $dialog(foo).state because mIRC can't minimize dialogs by default. I think you need a DLL to add a minimize/maximize buttons like MDX or DCX.