oohayf oohayl wrote:
hello,
is there a way to make a MessageBox the top most dialog while looking for some win32 window ?
...
@error=WaitWindowLike( $parent, $title, $class);
if ([EMAIL PROTECTED]) {
$MainWin->MessageBox ("Error", "MsgTitle", 0+48); # how to make this message the top most dialog ???
    }
...

Firstly, I don't think you mean to use 48 as the final parameter, as that is MB_ICONERROR|MB_ICONQUESTION, and you can't have 2 icon bits set.

  sub MB_ICONERROR() {16}
  sub MB_TOPMOST()   {0x40000}

  ...

  $MainWin->MessageBox("Error", "MsgTitle", MB_ICONERROR|MB_TOPMOST);

Regards,
Rob.

Reply via email to