Questions tagged [layered-windows]

41 questions
0
votes
0 answers

how to prevent drop-down menu disappearing after adding transparant layer

I have built an application that adds on-screen application help in context of an windows desktop application. When the object of help relates to a drop-down menu I am encountering problems that the drop-down menu disappears when adding a…
Bill Bridge
  • 821
  • 1
  • 9
  • 30
0
votes
1 answer

Getting empty update rectangle in OnPaint after calling InvalidateRect on a layered window

I'm trying to figure out why I've been getting an empty update rectangle when I call InvalidateRect on a transparent window. The idea is that I've drawn something on the window (it gets temporarily switched to have an alpha of 1/255 for the…
Shawn
  • 21
  • 3
0
votes
1 answer

Win32 LayeredWindow gives bad visual effect

I'm developing a UI system that has all those smart features like panel tearing off and docking, etc. Right now my task is to create an overlay on the screen that shows the position where the teared off or dockable panel would land. Pretty much same…
0
votes
0 answers

How to show web page over layered window in c#

Hii everyone I am developing a window application in which I want to show a web page over Layered window containing .PNG in c#, I am able to show two layered window with image over one of them as shown in screen shot But i want to render web page…
Sanjeev Sangral
  • 1,385
  • 2
  • 25
  • 37
0
votes
2 answers

Correct method for redrawing a layered window

I have a window created with the WS_EX_LAYERED window style. I am currently drawing onto a memory bitmap using GDI+, and using UpdateLayeredWindow to update the graphical content of my layered window. I intend to use this window as the main window…
Spooky
  • 2,966
  • 8
  • 27
  • 41
0
votes
1 answer

Setting a cursor for the whole desktop

I have a layered window, having the size of the screen but being almost completely transparent. (apart from a little cross drawn where the user clicks) wc.style = 0; wc.lpfnWndProc = (WNDPROC) wnd_top_rect_proc; wc.cbClsExtra =…
0
votes
0 answers

WS_EX_LAYERED window appearing invisible over RDP

I have developed a screen capture application for Windows using pure Win32 - no MFC or ATL. To do this, I am using two top-level layered windows - one (entirely transparent) to capture mouse events like dragging, and another (semi-transparent) to…
BeneGal
  • 180
  • 1
  • 11
0
votes
1 answer

How to redraw only a region of a layered window?

I have a layered window which is normally drawn this way: private void SelectBitmap(Bitmap bitmap) { IntPtr screenDc = GetDC(IntPtr.Zero); IntPtr memDc = CreateCompatibleDC(screenDc); IntPtr hBitmap = IntPtr.Zero; …
LightStriker
  • 19,738
  • 3
  • 23
  • 27
0
votes
1 answer

LayeredWindows and variable alpha translucency - using a Brush?

I have a layered window (using SetLayeredWindowAttributes). If I set the alpha on the whole window to 128 and draw black rectangles on it, it works as expected (black rectangles that show through at about 50% opacity). If, however, I set the aplha…
Dave
  • 1,521
  • 17
  • 31
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
0
votes
1 answer

Window Sitters - layered windows colorkeying and clickthrough

I made a window sitter in Visual Basic 6 a few years back, which used layered windows colorkeying to painlessly make the form nonrectangular. I tried to rewrite the window sitter in C# earlier this week, judging that the old code was a mess, and…
Kawa
  • 1,478
  • 1
  • 15
  • 20
1 2
3