Hi Alex,
Sorry, it took so long to reply :)
Yes, I see the effect. The only easy way to prevent this is to resize the titlebar window beyond the desktop, so it can't be click&drag with the mouse. But I don't know what else could happen (keyboard maybe ??)
Other than that you have to intercept WM_GETMINMAXINFO (hook/subclass). Intercept WM_WINDOWPOSCHANGING will not work.
Well, I wish you good luck!
Regards
>Hi Herman,
>
>Your suggestion had a very interesting effect on the target window:
>
>It allowed the window to be resized beyond the desktop size, but as soon as I touched it with the mouse in order to move it around and see if it indeed was that big, the Operating System changed its size back to 1024x768(-taskbarHeight).
>
>Thanks!
>
>Alex
>
>
>>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