Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_screen resizing issue
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01405383
Message ID:
01405385
Views:
97
>Gang,
>
>If you run the following code you will see how to tell if the user resizes
>
>oForm = CREATEOBJECT("frmTest")
>oForm.Show(1)
>           
>DEFINE CLASS frmTest AS Form
>  Caption = "Resize or move the form"
>  PROCEDURE INIT
>
>    *---------------------------------------------------------------------
>    * Set the API calls for intercepting the Windoes resizing messages
>    *---------------------------------------------------------------------
>    #define WM_EXITSIZEMOVE 0x0232
>    #define BE_FireAfterEvent 0
>
>    BINDEVENT(ThisForm.HWnd, WM_EXITSIZEMOVE, ;
>       ThisForm, "OnWindowResizeExit", ;
>       BE_FireAfterEvent)
>       
>    BINDEVENT(_Screen.HWnd, WM_EXITSIZEMOVE, ;
>       ThisForm, "OnWindowResizeExit", ;
>       BE_FireAfterEvent)
>
>  ENDPROC
>  
>  PROCEDURE OnWindowResizeExit
>    LPARAMETERS hWnd, nMsg, nwParam, nlParam
>    ThisForm.Caption = "Now, try resizing or moving the VFP Screen"
>    MESSAGEBOX("Finished Resizing or Moving")
>  ENDPROC
>  
>ENDDEFINE
Very nice!
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform