If OpenWindow(0,0,0,500,250,"Window",#PB_Window_SystemMenu|#PB_Window_ScreenCentered) DeleteMenu_(GetSystemMenu_(WindowID(0),#False),1,#MF_BYPOSITION) Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow EndIf