I have a dock component with a Toolwindow on the left (classical case) and a maximum of 4 documentWindows which are created on demand (A "new" button in the ribbon bar).
So, I can clic on DocumentWidows to select one of them and do some action in the toolwindow (select a date for example) to refresh the content of the selected DocumentWindow.
My problem is : How can I get the active documentWindow?
I've tried MyDock.ActiveWindow but it constantly return the ToolWindow because when in clic on the controls inside my toolWindow, it activate it.
What is the "best practice" to do what I want?