|
Re: [SWT] Using SWT App as Windows Application Desktop Toolbar [message #40967 is a reply to message #40842] |
Tue, 07 January 2003 16:31 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #598495 is a reply to message #40842] |
Wed, 23 February 2005 18:43 |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02302 seconds