Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » [SWT] Using SWT App as Windows Application Desktop Toolbar
[SWT] Using SWT App as Windows Application Desktop Toolbar [message #588394] Mon, 06 January 2003 19:11
Jeff Sabin is currently offline Jeff SabinFriend
Messages: 2
Registered: July 2009
Junior Member
I am attempting to register my SWT app with Windows as an application
desktop toolbar like the office taskbar or the start bar. I have native code
that registers the app based on the handle of the shell (the native code
works correctly by itself). Initially, the desktop is resized properly and
my app window is correctly positioned. But then the app's window is moved.
As best I can tell, the Windows messages that comes through when this
happens are:
46h - WINDOWPOSCHANGING
24h - GETMINMAXINFO
47h - WINDOWPOSCHANGED
3h - WM_MOVE

in that order.

The SWT code looks like this:

Shell shell = new Shell(display, SWT_NONE);
shell.setSize(display.getClientArea().width, 35);
shell.setLocation(0,0);

// Add all widgets to shell

shell.open();
registerAsToolbar(shell.handle); // native call
while(!shell.isDisposed()){
if (!display.readAndDispatch()){
display.sleep();
}
}

Does anyone have any ideas for me? Anyone successfully done this before?

Thanks,
Jeff
Previous Topic:Xterm console as Eclipse view
Next Topic:SWT, ActiveX control and Java Applet
Goto Forum:
  


Current Time: Thu Apr 25 12:28:00 GMT 2024

Powered by FUDForum. Page generated in 0.03751 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top