Gorden Lin wrote: > thanks for your great help! > Yes, I have tried your suggestion, it is cool enough to solve most part > of my problem, now OOo can start without any window decoration. only > that it is not in fullscreen mode, the space of the original window > header and the space of the original border are still exist, just like > an application whose window decoration invisible, I tried to add > css::awt::WindowAttribute::FULLSIZE into the descriptor, but seems it > does not take full screen effect, too. is it possible to let the non > decorated OOo fill in all the screen space so user can not see the desktop?
I don't understand what header and border you mean. Does it mean that at the place where the decoration used to be now a grey area is painted? I would say that this is a toolkit bug, but that should be judged by a toolkit/VCL expert. You could try to hack a little bit more, but it needs using VCL because the necessary functionality is not available through the toolkit API. After creation of the Window you can get a VCL Window pointer: WorkWindow* pWindow = (WorkWindow*) VCLUnoHelper::GetWindow( xWindow ); (this might need to include <toolkit/helper/vclunohelper.hxx>) This window can be set to maximum size: pWindow->Maximize(); If this doesn't work you could instead try pWindow->ShowFullScreenMode (TRUE ); Please note that the last call will remove the Menubar from the screen though it is still accessible through keyboard. This code is a little bit hacky, because it does a dynamic cast to WorkWindow*, but as long as the WindowDescriptor still contains TOP it will work. Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]