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:
00905046
Views:
28
>I feel tempted to point out the obvious sillieness of creating a window
>larger than the screen. Ah well. What you will need to do is handle the
>WM_WINDOWPOSCHANGING message. This is typically handled by DefWindowProc
>that sends a WM_GETMINMAXINFO message that retrieves the largest and
>smallest dimensions an overlapped window can be. Handle it yourslef to
>prevent it clipping the windwo size to the desktop size.
>
>-----End of newsgroups quote.
>
>I don't think that vfp or the api offers an easy way to intercept the above messages. This is probably yet another thing that vfp does its own [and unstandard] way.

Hi Alex
Intercept messages (VFP ways) is not easy or imposible without a wrapper.
However, if the application you are trying to resize doesn't calculate the size by itself (such as calculator), you can try to send SWP_NOSENDCHANGING to tell the OS to not sending WM_WINDOWPOSCHANGING.

Try this:
#Define SWP_NOSENDCHANGING   0x400
SetWindowPos( hWnd, 0, -50,-50, SysMetric(1)+100,SysMetric(2)+100, SWP_NOSENDCHANGING )
Hope it works
Herman
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform