Skip to Content
0
Former Member
Dec 29, 2009 at 01:44 PM

How can I get the current window instance?

379 Views

Hi everybody,

I want to edit my CURRENT window but I don't know how to get the instance of it.

My task is to remove the status, menu and tool bar from the browser.

I found the code

IWDWindow window1 = wdComponentAPI.getWindowManager()createExternalWindow("http://www.google.com", "MyURL", true);

window1.removeWindowFeature(WDWindowFeatur.STATUS_BAR);

But this won't help because it edits a new external window and I want to edit the current window (first window to open).

Can somebody help me?

THX a lot.

Dirk