Re: Potential issue with message_box() function
- Posted by Spock Feb 17, 2016
- 1448 views
LarryMiller said...
Internally the message_box() function uses the API function GetActiveWindow() to get the handle to the active window and uses that as it's parent. There are some potentially serious issues with this..
This is what happens in Arwen. The reason being that I just might want to invoke the message box before the main window handle is even created. Oh I know I shouldn't but it is just so darn convenient! The alternatives were to issue some crummy console message or invest in a custom message box window. I see Andy Drummond has already posted one to the contributions page.. must take a look..
Spock