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 #40842] Mon, 06 January 2003 19:11 Go to next message
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
Re: [SWT] Using SWT App as Windows Application Desktop Toolbar [message #40967 is a reply to message #40842] Tue, 07 January 2003 16:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dwhitema.us.ibm.com

ask on eclipse.tools

"Jeff" <jsabin@myrealbox.com> wrote in message
news:avcjjs$q5q$1@rogue.oti.com...
> 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
>
>
Re: [SWT] Using SWT App as Windows Application Desktop Toolbar [message #66935 is a reply to message #40842] Wed, 23 February 2005 18:43 Go to previous message
Eclipse UserFriend
Originally posted by: bob.objfac.com

Nope. Ask on eclipse.platform.swt newsgroup.

Bob Foster

Jeff wrote:
> 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
>
>
Re: [SWT] Using SWT App as Windows Application Desktop Toolbar [message #588432 is a reply to message #40842] Tue, 07 January 2003 16:31 Go to previous message
David Whiteman is currently offline David WhitemanFriend
Messages: 166
Registered: July 2009
Senior Member
ask on eclipse.tools

"Jeff" <jsabin@myrealbox.com> wrote in message
news:avcjjs$q5q$1@rogue.oti.com...
> 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
>
>
Re: [SWT] Using SWT App as Windows Application Desktop Toolbar [message #598495 is a reply to message #40842] Wed, 23 February 2005 18:43 Go to previous message
Eclipse UserFriend
Originally posted by: bob.objfac.com

Nope. Ask on eclipse.platform.swt newsgroup.

Bob Foster

Jeff wrote:
> 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:I miss Visual Age for Java....
Next Topic:Eclipse help system in a website - Version 3.0
Goto Forum:
  


Current Time: Tue Mar 19 06:21:25 GMT 2024

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

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

Back to the top