Howto: Create a GUI window that is minimizable but not resizable
Here's my code for future reference, this is a commonly requested thing
Here's my code for future reference, this is a commonly requested thing
Extern "win32" Function GetWindowLong(hwnd, nIndex) = "GetWindowLongA@8" Function SetWindowLong(hwnd, index, nIndex) = "SetWindowLongA@12" End Extern Local Window:TGadget = CreateWindow("Testing", 10, 10, 512, 512, 0, WINDOW_TITLEBAR) hWnd = Query(Window, 1) ret = GetWindowLong(hWnd, -16) ret = ret | $20000 SetWindowLong hWnd, -16, ret UpdateWindowMenu Window Repeat WaitEvent() Until EventID() = EVENT_WINDOWCLOSE