JohnOne Posted August 7, 2011 Share Posted August 7, 2011 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 More sharing options...
jvanegmond Posted August 7, 2011 Share Posted August 7, 2011 (edited) 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 August 7, 2011 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
JohnOne Posted August 7, 2011 Author Share Posted August 7, 2011 Thanks Manadar. it all makes sense now. 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now