Questions tagged [ws-ex-layered]

11 questions
20
votes
3 answers

Win32: How to make drop shadow honor non-rectangular Layered window?

i've created a layered window by adding the the WS_EX_LAYERED extended style: wndClass.ExStyle = wndClass.ExStyle | WS_EX_LAYERED; Windows will use black as the chroma key color value. i'm going to leave a large border of black to make the problem…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
4
votes
3 answers

How to draw outside a window?

Looking at a Windows tooltips class hint window, i see that it draws its drop-shadow outside the hint window's actual rectangle. Using SpyXX - i can get the tooltip's window rect, and class styles: Rectangle: (440, 229)-(544, 249),…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
4
votes
1 answer

win32 controls (QWinHost) not painted on layered (ie. semi-transparent) widget (WS_EX_LAYERED)

I ported a win32 control using QWinHost, and put it on a layered (semi-transparent) widget. When I set WS_EX_LAYERED flag, then paint not occurred for win32 ported control. SetWindowLong(winId(), GWL_EXSTYLE, …
hassan deldar
  • 293
  • 1
  • 11
3
votes
2 answers

WS_EX_LAYERED, invisible window, and a fresh install of Windows

I would like to share with you this post as I wasted a lot of time to understand why the WS_EX_LAYERED flag did not work on a fresh install of Windows (my test was on a Win7, I don't know if it can be reproduced on a Win8 o.s.). This was my…
Rosario Russo
  • 680
  • 2
  • 8
  • 14
3
votes
2 answers

Drawing semitransparent child window with image on parent window

I need to make bird animation in WS_OVERLAPPED window (as shown below). Animation is represented by 8 images: The blue color in the image (which is RGB(0, 255, 255)) has to be transparent (see screenshot below). I wanted to do this using…
patryk.beza
  • 4,876
  • 5
  • 37
  • 56
1
vote
0 answers

window that you can click trough C++ SFML

Well i made this transparent window that works fine, i made it full screen and top most. and you can't even see it, so now i can draw on the screen whatever i want! problem is, if i try to click on something behind it, it focuses the window, making…
JamesT
  • 25
  • 6
1
vote
1 answer

WS_EX_LAYERED window does not receive mouse events

I'm coding a custom background non rectangular window with buttons such as minimize and close in bitmaps. Here is my code just for now The problem is the custom window does not receive mouse messages while hovering over non zero alpha regions.
vian
  • 811
  • 2
  • 12
  • 27
0
votes
1 answer

WM_MOUSEMOVE / wParam doesn't contain key state, only when any mouse button is pressed

I use a WS_EX_LAYERED window and receive a WM_MOUSEMOVE message when the mouse moves over non-transparent areas. So far so good. When I press and hold SHIFT or CTRL and move the mouse, WM_MOUSEMOVE/wParam doesn't indicate the key state. When I…
0
votes
1 answer

UpdateLayeredWindow, SIZE_RESTORED and GetClientRect problem

I have a layered window set up in my MFC application. I have set up my own derivation of CDialog to allow me to customise various parts of how the window is rendered. Everything works fine right up until I start worrying about minimise and…
Goz
  • 61,365
  • 24
  • 124
  • 204
0
votes
1 answer

C++ GDI+ Drawing Image on layered window not working

So I've found a lot of code samples, guides, and answers on SO about drawing an image to a layered window. I've tried using pure HBITMAPS and the WIC libs to draw, and now I'm on to GDI+ to draw (which is much simpler and is seemingly easier to use,…
Qix - MONICA WAS MISTREATED
  • 14,451
  • 16
  • 82
  • 145
-1
votes
1 answer

alpha blended control on layered window in C#

i have a layered form with the WS_EX_LAYERED extended style set. i've created a child "EDIT" control using CreateWindowEx(...) API function; the control it's there but is not painted and nothing appears on the form. i know that when using…
dst
  • 27
  • 5