Skip to main content

the Call to Winapi MessageBox is a very easy way to send short messages. But does somebody know how I can, in the same easy way, place this Box on a certain position of the screen?  Often the screens are very big and the message appears in the middle of the video and not on the active window.

thanks for help

Rolf

the Call to Winapi MessageBox is a very easy way to send short messages. But does somebody know how I can, in the same easy way, place this Box on a certain position of the screen?  Often the screens are very big and the message appears in the middle of the video and not on the active window.

thanks for help

Rolf

Hi Rolf,

MessageBox does not takes a screen position so there is no simple solution. You could try FindWindow to get the HWND to the messagebox and then movewindow. However MessageBox blocks so you might need to spawn a background thread to do it as well.

Regards

David