Hi David,
Looks like vfp ignores the message from the operating system regarding it's window being constrained by the size of the desktop.
Try this:
unmaximize vfp.
Now drag the vfp window by the menu bar all the way to the left edge of the screen. Now put the cursor on vfp's window's border and stretch it. You can go on forever.
Try the same with IE or any other "well-behaved" application.
Thanks for your help!
Alex
>Alex,
>
>You have to omit the SWP_NOMOVE, SWP_NOSIZE flags too. I started a notepad session and tried this:
>
>
lnHwnd = FindWindow( .null., "Untitled - Notepad" )
>
>if ( lnHwnd > 0 )
> SetWindowPos( lnHwnd, 0, -50, -50, int( sysmetric( 1 ) * 1.5 ), int( sysmetric(2) * 1.5 ), 0 )
>endif
>
>
>It does seem to clip the size, but I think that might be notepad that is doing the constraining. Because VFP will let you resize it's window way out of bounds of reality:
>
>
lnHwnd = FindWindow( .null., "Microsoft Visual FoxPro" )
>
>if ( lnHwnd > 0 )
> SetWindowPos( lnHwnd, 0, -50, -50, int( sysmetric( 1 ) * 1.5 ), int( sysmetric(2) * 1.5 ), 0 )
>endif
>
>? _screen.height
>? _screen.Width
>
>
>>Tried your code, but I still can't get the window to be larger than the desktop.
Low-carb diet not working? Try the Low-food diet instead!