Closing the Window

Blitz3D Forums/Blitz3D Programming/Closing the Window

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

some example code (Delphi)

    var 
    hwndHandle : THANDLE; 
    hMenuHandle : HMENU; 
    begin 
    hwndHandle := FindWindow(nil, 'Untitled - Notepad'); 
    if (hwndHandle <> 0) then begin 
    hMenuHandle := GetSystemMenu(hwndHandle, FALSE); 
    if (hMenuHandle <> 0) then 
    DeleteMenu(hMenuHandle, SC_CLOSE, MF_BYCOMMAND); 
    end;