Jump to content
Sign in to follow this  
JohnOne

MsgBox

Recommended Posts

JohnOne

Admittedly its been a while since I read the help file regarding MsgBox.

I had it in my head that if a hwnd param was given that the MsgBox would appear centered in its parent GUI. Obviously that is not the case.

My question is: In what circumstances would passing this param become useful?


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites
jvanegmond

It seems that here someone asked the same question: http://stackoverflow.com/questions/195593/why-use-a-owner-window-in-messagebox-show This person asked a .NET question, but I'm sure that in this case the .NET is just a wrapper over the WinAPI.

Main reason: To ensure the MsgBox window does not disappear behind other windows. If a window can understand that MsgBox is one of its modal children, then it will be in foreground.

Edited by Manadar

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×