How to get the object of the dialog?

How to get the object of the dialog?


If I want to return the object of (parent or children)dialog,but I
can't find a method to invole?and I think it is a must to add these
methods to let the user to control the dialog well.