JohnOne 1,603 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. Share this post Link to post Share on other sites
jvanegmond 306 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 Share this post Link to post Share on other sites
JohnOne 1,603 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. Share this post Link to post Share on other sites