WiseScript: Any way to disable the ability to move a dialog box?

I can currently remove the close button on a dialog box and also make it so that the dialog box is always on top of any other window. The "Show Desktop" button will not minimize the window either. Is there a way to stop a user from being able to move the window off the screen? Thanks for your help. Below is my code for what I already have. Just copy and paste it into the WiseScript Editor and the editor will show it in its native display format.

Answers

0

Cool, thanks for the tip to the Windows API documentation. I was able to figure out how to accomplish what I wanted. It would have been nice to use SetWindowLongPtr for Windows 64-bit support, but I couldn't get that to work. Apparently just changing the call from SetWindowLongA to SetWindowLongPtr does not work. Anyways, here is the code for anyone else that ever wants to do the same thing: If anyone figures out how to get this to work for SetWindowLongPtr, please do post your code.