Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forums[SWT] Using SWT App as Windows Application Desktop Toolbar
https://www.eclipse.org/forums/index.php/mv/msg/12997/40842/#msg_40842
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);
Does anyone have any ideas for me? Anyone successfully done this before?
Thanks,
Jeff]]>Jeff Sabin2003-01-06T19:11:45-00:00Re: [SWT] Using SWT App as Windows Application Desktop Toolbar
https://www.eclipse.org/forums/index.php/mv/msg/12997/40967/#msg_40967
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
>
>]]>2003-01-07T16:31:50-00:00Re: [SWT] Using SWT App as Windows Application Desktop Toolbar
https://www.eclipse.org/forums/index.php/mv/msg/12997/588432/#msg_588432
"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
>
>]]>David Whiteman2003-01-07T16:31:50-00:00Re: [SWT] Using SWT App as Windows Application Desktop Toolbar
https://www.eclipse.org/forums/index.php/mv/msg/12997/66935/#msg_66935
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
>
>]]>2005-02-23T18:43:13-00:00Re: [SWT] Using SWT App as Windows Application Desktop Toolbar
https://www.eclipse.org/forums/index.php/mv/msg/12997/598495/#msg_598495
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
>
>]]>2005-02-23T18:43:13-00:00