>Hi,
>I have a application (VFP5) that reads a message dbf and uses MESSAGEBOX to display any un-read messages, but if the users screen saver is active the user does not see the message until he accesses his computer.
>
>Is there any way to stop the screen saver from within VFP5?
>
>Thanks in advance
>Ray
Ray,
When windows wants to start a screensaver it sends the WM_SYSCOMMAND message with the wParam parameter set to SC_SCREENSAVE to the current active app. To stop the screensaver being activated, you need to intercept this message and stop it from being handled by the default message hander. I don't know how to do this in VFP.
Another way would be to use the SystemParametersInfo API function to either check if the screen saver is running or just plain deactivate it before your routine.
HTH,
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only