Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Trouble with put WS_EX_LAYERED (0x80000) flag on the Canvas window
Trouble with put WS_EX_LAYERED (0x80000) flag on the Canvas window [message #453247] Sat, 02 April 2005 02:37 Go to next message
Eclipse UserFriend
Originally posted by: Abhinav.Vohra.siebel.com

I'm having trouble setting WS_EX_LAYERED (0x80000) flag on the Canvas
window. I can see thru spy++ that the flag wasnt set. Is there something
I'm missing?

int extStyle = OS.GetWindowLong(canvas.handle, OS.GWL_EXSTYLE);

extStyle = extStyle | 0x80000;

OS.SetWindowLong(canvas.handle, OS.GWL_EXSTYLE, extStyle);
Re: Trouble with put WS_EX_LAYERED (0x80000) flag on the Canvas window [message #453284 is a reply to message #453247] Mon, 04 April 2005 16:56 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
It should work. NOTE: WS_EX_LAYERED when set on tables with headers causes
redraw problems.

"Abhinav Vohra" <Abhinav.Vohra@siebel.com> wrote in message
news:d2l0kd$3be$1@news.eclipse.org...
> I'm having trouble setting WS_EX_LAYERED (0x80000) flag on the Canvas
> window. I can see thru spy++ that the flag wasnt set. Is there something
> I'm missing?
>
> int extStyle = OS.GetWindowLong(canvas.handle, OS.GWL_EXSTYLE);
>
> extStyle = extStyle | 0x80000;
>
> OS.SetWindowLong(canvas.handle, OS.GWL_EXSTYLE, extStyle);
Re: Trouble with put WS_EX_LAYERED (0x80000) flag on the Canvas window [message #453289 is a reply to message #453284] Mon, 04 April 2005 18:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Abhinav.Vohra.siebel.com

Steve Northover wrote:
> It should work. NOTE: WS_EX_LAYERED when set on tables with headers causes
> redraw problems.
>
> "Abhinav Vohra" <Abhinav.Vohra@siebel.com> wrote in message
> news:d2l0kd$3be$1@news.eclipse.org...
>
>>I'm having trouble setting WS_EX_LAYERED (0x80000) flag on the Canvas
>>window. I can see thru spy++ that the flag wasnt set. Is there something
>>I'm missing?
>>
>>int extStyle = OS.GetWindowLong(canvas.handle, OS.GWL_EXSTYLE);
>>
>>extStyle = extStyle | 0x80000;
>>
>>OS.SetWindowLong(canvas.handle, OS.GWL_EXSTYLE, extStyle);
>
>
>
Steve
It doesnt seem to work for me. Would it be because the canvas is a child
window of the Shell that I'm running it in?
Re: Trouble with put WS_EX_LAYERED (0x80000) flag on the Canvas window [message #453444 is a reply to message #453289] Tue, 05 April 2005 18:48 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Are you running XP with the manifest? I have played with this flag in the
past and seen it work.

"Abhinav Vohra" <Abhinav.Vohra@siebel.com> wrote in message
news:42518D38.8050208@siebel.com...
> Steve Northover wrote:
> > It should work. NOTE: WS_EX_LAYERED when set on tables with headers
causes
> > redraw problems.
> >
> > "Abhinav Vohra" <Abhinav.Vohra@siebel.com> wrote in message
> > news:d2l0kd$3be$1@news.eclipse.org...
> >
> >>I'm having trouble setting WS_EX_LAYERED (0x80000) flag on the Canvas
> >>window. I can see thru spy++ that the flag wasnt set. Is there something
> >>I'm missing?
> >>
> >>int extStyle = OS.GetWindowLong(canvas.handle, OS.GWL_EXSTYLE);
> >>
> >>extStyle = extStyle | 0x80000;
> >>
> >>OS.SetWindowLong(canvas.handle, OS.GWL_EXSTYLE, extStyle);
> >
> >
> >
> Steve
> It doesnt seem to work for me. Would it be because the canvas is a child
> window of the Shell that I'm running it in?
Previous Topic:Controls getting too much space with TableWrapLayout in WizardPage
Next Topic:Eclipse 3.1.M6 Strike.through
Goto Forum:
  


Current Time: Wed Apr 24 19:58:39 GMT 2024

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

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

Back to the top