fires when a window was maximized
myWins.attachEvent("onMaximize", function(win){ // your code here });
win is dhtmlXWindowsCell instance, please check dhtmlXWindowsCell API for details