}
use strict;
-use Test::More tests => 230;
+use Test::More tests => 232;
use OS2::Process;
sub SWP_flags ($) {
ok IsWindowShowing $k_hwnd, 'kid is showing';
ok IsWindowVisible $k_hwnd, 'kid is flaged as visible';
ok IsWindowEnabled $k_hwnd, 'kid is flaged as enabled';
+ SKIP: {
+ skip 'if defaultVIO=MAXIMIZED, new windows are shifted, but maximize to UL corner', 1 unless $fl & 0x800;
+ ok hWindowPos_set({x => $ppos[0], y => $ppos[1]}, $k_hwnd), 'x,y-restore for de-minimization of MAXIMIZED';
+ }
@nkpos = WindowPos $k_hwnd;
is_deeply([@ppos[0..5]], [@nkpos[0..5]], 'position restored');
+
# Now the other way
ok hWindowPos_set( {flags => 0x400}, $k_hwnd), 'set to minimized';
ok !IsWindowShowing $k_hwnd, 'kid is not showing';
ok IsWindowShowing $k_hwnd, 'kid is showing';
ok IsWindowVisible $k_hwnd, 'kid is flaged as visible';
ok IsWindowEnabled $k_hwnd, 'kid is flaged as enabled';
+ SKIP: {
+ skip 'if defaultVIO=MAXIMIZED, new windows are shifted, but maximize to UL corner', 1 unless $fl & 0x800;
+ ok hWindowPos_set({x => $ppos[0], y => $ppos[1]}, $k_hwnd), 'x,y-restore for de-minimization of MAXIMIZED';
+ }
@nkpos = WindowPos $k_hwnd;
is_deeply([@ppos[0..5]], [@nkpos[0..5]], 'position restored');