The value mIRC returns for $dialog($dname).ch is inaccurate when the dialog contains a menu bar. Example:

Code:

alias bugdialog dialog -mv bugtest bugtest

dialog bugtest {
  option pixels
  size -1 -1 400 400
  menu "Menu", 1
}

alias bugtest {
  echo -a Before- cw: $+ $dialog(bugtest).cw ch: $+ $dialog(bugtest).ch
  dialog -s bugtest -1 -1 $dialog(bugtest).cw $dialog(bugtest).ch
  echo -a After - cw: $+ $dialog(bugtest).cw ch: $+ $dialog(bugtest).ch
  echo -a --
}



/bugdialog

/bugtest


-genius_at_work