I am really at a lose to you what you mean.
You have the SubWindow pointer 'window', so just call the function you need on it.
Where is the problem?