Ooops. Fabio's question was 4 years old and I replied to him.
I always add 4096 and never saw the problem described.
>Hi Fabio!
>
>Did you find a Solution?
>We have the Same behavior sometimes...
>
>>We have this problem.
>>When the program executes a MessageBox,
>>the message window does not appear in the foreground.
>>By pressing ALT in some cases it appears, but very often
>>we have to try several times.
>>
>>Does anyone have a solution?
>>Thanks.