U can use the below macro to check or unchecked mininize buttot. I m sending u a code for the pur[pose.
and also file is attached. Please refer it and write for any issue.
set g = ActiveDocument.GetSheetObject("CH01")
set gp = g.GetProperties
'gp.GraphLayout.Frame.AllowMinimize = false '' use this to minimize once
gp.GraphLayout.Frame.AllowMinimize = not(gp.GraphLayout.Frame.AllowMinimize)''use this to toggle minimize
Allowminize.qvw 119.0 K