Questions tagged [layered-windows]

41 questions
1
vote
1 answer

Keeping a window always on top -- including menus (win32)

I would like to have a layered window that is always-on-top, which I can accomplish, but there are certain screen elements that still get drawn over it, such as menus (including the start menu). Is there any way to make a window or child window of…
Steven Lu
  • 41,389
  • 58
  • 210
  • 364
1
vote
0 answers

Layered windows and COM drag image

I have a program that displays a main window, a layered window and implements COM drag and drop. In general terms: I create a normal top level window. I create a layered window using WS_EX_LAYERED and UpdateLayeredWindow/SetLayeredWindowAttributes…
Su Green
  • 11
  • 1
1
vote
1 answer

C++ Layered Window and WM_MOUSEMOVE

I'm trying to make a transparent screensaver in C++ and WinAPI. It works fine so far on Windows XP, but on WES7 I have the following problem: By making my screen transparent, I can't recieve any WM_MOUSMOVE messages. SetWindowLongPtr( hWnd, …
user2618639
  • 21
  • 2
  • 4
1
vote
0 answers

Is it possible to make a Popup act as a Layered Window

I am wonder if a PopUp can be A LayeredWindow. I am using Encoder 4 and there is a property that allows the program to not capture layered window. Here is my code to show the feed in a tooltip public class MyToolTip : ToolTip { protected…
Jonathan
  • 163
  • 2
  • 4
  • 13
1
vote
0 answers

Splash screen with layered window in c#

In the multilayered window I have the click through working but I still see some gray behind my background picture in my window how do I remove that? I have looked on stack overflow and codeproject but I can't find a solution. This is my…
linmic
  • 139
  • 2
  • 10
1
vote
1 answer

Layered windows, UpdateLayeredWindow, alpha blending and mouse events

In Windows Forms and C#, I'm using a form with the WS_EX_LAYERED style, and calling UpdateLayeredWindow to set the background to an image that is transparent/alpha blending: NativeMethods.BLENDFUNCTION blend = new…
TechAurelian
  • 5,561
  • 5
  • 50
  • 65
1
vote
1 answer

WM_NCHITTEST not changing mouse cursor

I have a Layered Window (WS_EX_LAYERED) that implements a custom NCHITTEST and NCCALCSIZE to make the client rect of my window the same as the window rect. My window sizes and paints correctly; I can return HTBOTTOM from WM_NCHITTEST when the…
Armentage
  • 12,065
  • 8
  • 33
  • 33
0
votes
0 answers

Win32 Layered window not working correctly

I am attempting to create a transparent window using the Win32 API. The window should display a red box at its center, allowing the user to see it while maintaining the ability to interact with objects positioned behind the window. Here is the code…
Hackermon
  • 69
  • 1
  • 1
  • 8
0
votes
0 answers

Why isn't SetLayeredWindowAttributes() working on my WinUI 3 desktop overlay background?

I'm trying to create a desktop overlay using WINUI 3 (Windows App SDK 1.3). I'm trying to make the window background transparent, just like you can do in WinForms by using TransparencyKey. However, since as far as I know, WinUI 3 doesn't have such a…
Et3rnos
  • 23
  • 1
  • 3
0
votes
1 answer

Colored border of the transparent color key around text written on the transparent window

I created a Transparent Layered window with a color key that I use to make the window transparent. So far it works all fine. Writing text on it - using GDI+ - works, too... The problem I encounter is, that the text has a thin border of the…
Juarrow
  • 2,232
  • 5
  • 42
  • 61
0
votes
0 answers

Layered window size bigger than the size of the contents

I want to create a layered window, the size of which is bigger than the size of its contents (hdcSrc). So that the window is for example 900x900, and we can place a 300x300 image inside of it anywhere we want, while the rest of the window is…
0
votes
0 answers

Removing Mask Color LWA_COLORKEY

LWA_COLORKEY is leaving mask color over Text on transparent. Is it possible to remove it and make transparent neat and clean? Form1.Color:=clAqua; SetWindowLong(Form1.Handle, GWL_EXSTYLE, GetWindowLong(Form1.Handle, GWL_EXSTYLE) or…
AkA
  • 13
  • 5
0
votes
2 answers

A skinning engine in Windows: draw “dirty” regions only or the whole window at once?

I want to make a skinning engine capable of drawing custom-shaped windows with alpha blending. That is, it'll use layered windows (UpdateLayeredWindow). A typical window will contain among its background a couple dozens of other bitmaps ranging from…
Yegor
  • 2,514
  • 2
  • 19
  • 27
0
votes
2 answers

c# - If condition: mouse key clicked and bAlpha

In the topic below there were some suggestions on how to create a switch for two methods with one button: how-can-i-switch-between-two-methods-in-one-button-with-every-click How could I achieve something like this with one specific Mouse…
taraz
  • 117
  • 2
  • 8
0
votes
0 answers

Make button color-transparent in Windows

I want to create buttons with custom shapes so I decided to do it with the help of Layered Windows. I create window for button, set bitmap for it, make it layered and then try to make white color fully transparent. As soon as I write on masm, the…
0shn1x
  • 41
  • 9