Without the use of Dll's why don't you use the X and Y properties of the position of the dialog and -m switch only?

It kinda will be in the perfect position and kinda be docked to mirc window (movable)