Wwin:min-button = true.
Wwin:max-button = true.
def var li_hwnd as int no-undo.
procedure SetWindowLongA external "user32.dll":
def input parameter hwnd as long.
def input parameter nIndex as long.
def input parameter dwNewLong as long.
end procedure.
procedure GetParent external "user32.dll":
def input parameter hwnd as long.
def return parameter WinLong as long.
end procedure.
run GetParent({&WINDOW-NAME}:hwnd, output li_hwnd).
run SetWindowLongA(li_hwnd, -16, 348848128).
The updated method when windows have been realised is as followsIf you have changed certain window data using SetWindowLong, you must call SetWindowPos to have the changes take effect. Use the following combination for uFlags: SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED
def var li_hwnd as int no-undo.
procedure GetParent external "user32.dll":
def input parameter hwnd as long.
def return parameter WinLong as long.
end procedure.
procedure SetWindowLongA external "user32.dll":
def input parameter hwnd as long.
def input parameter nIndex as long.
def input parameter dwNewLong as long.
end procedure.
procedure SetWindowPos external "user32.dll":
def input parameter hwnd as long.
def input parameter InsAfter as long.
def input parameter x as short.
def input parameter y as short.
def input parameter cx as short.
def input parameter xy as short.
def input parameter uFlags as unsigned-short.
end procedure
run GetParent({&WINDOW-NAME}:hwnd, output li_hwnd).
run SetWindowLongA(li_hwnd, -16, 348848128).
run SetWindowPos(li_hwnd, 0, 0, 0, 0, 0, 2 + 1 + 4 + 32). /*SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED */