How to search for a Dockable Window through a AppRef object?

Discussion created by huangs3 on Aug 20, 2012
Latest reply on Aug 28, 2012 by huangs3
Hi Everybody:

    I am implementing an ArcMap command in ArcObjects 10. In the OnClick event of the command, I want to access an already implemented dockable window. However, I haven't found how to do that.

    I know that with an "Application" object, I can use its IDockableWindowManager interface to search for the dockable window I want with ProgID. However, in the command I don't have access to an "Application" object, but only "AppRef" which is passed into the command class through OnCreate(object hook) method.

    Is there any way I can still access the dockable window from the command?
    Thank you!