$iMsgBoxAnswer = _Bb_MsgBox("title", "text")
Select
Case $iMsgBoxAnswer = 6 ;Yes
Case $iMsgBoxAnswer = 7 ;No
Case $iMsgBoxAnswer = 2 ;Cancel
EndSelect
Func _Bb_MsgBox($sTitle, $sText, $iTime = 0, $Hwnd = "")
Local $ReturCode = 2
Local $MSG_Form = GUICreate($sTitle, 350, 85, -1, -1)
Local $MSG_ICON = GUICtrlCreateIcon("shell32.dll", 61, 10, 10, 32, 32)
Local $MSG_LABEL = GUICtrlCreateLabel($sText, 43, 19, 300, 30, 0x001)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
Local $MSG_BTN1 = GUICtrlCreateButton("button1", 10, 55, 160, 23)
Local $MSG_BTN2 = GUICtrlCreateButton("buton2", 180, 55, 160, 23)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case -3
$ReturCode = 2
ExitLoop
Case $MSG_BTN1
$ReturCode = 6
ExitLoop
Case $MSG_BTN2
$ReturCode = 7
ExitLoop
EndSwitch
WEnd
GUIDelete($MSG_Form)
Return $ReturCode
EndFunc
how can i deactive window's exit button ?