OK, I have a problem, I'm trying to set up a "Always on top" menu item, and it is not staying on top after clicking $progressGui[0] is the hwnd from the guicreate, and $progressGui[5] is the always on top menuitem Func mnuOnTopClick() If BitAnd(GUICtrlRead($progressGui[5]),$GUI_CHECKED) Then ;uncheck, remove always on top GUISetStyle(-1,-1,$progressGui[0]) GUICtrlSetState($progressGui[5],$GUI_UNCHECKED) Else ;check, set always on top GUISetStyle(-1,$WS_EX_TOPMOST,$progressGui[0]