Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Window larger than desktop
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00903943
Message ID:
00904164
Views:
23
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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform