Apache OpenOffice (AOO) Bugzilla – Issue 107258
css::awt::XWindow::setPosSize() doesn't restore maximized window state
Last modified: 2013-01-29 21:44:26 UTC
REM ***** BASIC ***** Declare Function ShowWindow Lib "user32" _ (ByVal lHwnd As Long, _ ByVal lCmdShow As Long) As Boolean Sub Main w = ThisComponent.CurrentController.Frame.ContainerWindow ShowWindow(w.getWindowHandle(dimarray(), 1), 3) ' maximize the window ShowWindow(w.getWindowHandle(dimarray(), 1), 6) ' minimize the window w.setPosSize(0, 0, 100, 100, 15) End Sub running the macro above results in the window with a normal size and a maximized state in the mean time.
passing to the toolkit owner; isn't there a maximize method for that like in vcl ?