Jump to content

MsgBox


Recommended Posts

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.

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...