Questions tagged [dwm]

For questions about the Desktop Window Manager (DWM), which handles desktop composition in Windows Vista and later versions. For questions about the Dynamic Window Manager (DWM) for X, use [x-dwm].

255 questions
1
vote
1 answer

Windows: send Mouse/Keyboard event to background window?

My application is a fullscreen window which is rendering a designated other window (from dwm), for example Google Chrome. I would like to know if it's possible to send events (such as mouse keyboard events) to the specified window. Of course the…
Erwan Douaille
  • 553
  • 1
  • 10
  • 31
1
vote
1 answer

How to distort/manipulate dwm live thumbnails in Windows 8, or in any other way get access to window texture?

I have found this: https://github.com/steeve/dwmaxx2 This is how it should work: https://www.youtube.com/watch?v=Fpvh16VjrRE But this seems to not work in Windows 8/8.1, or I'm doing something wrong. It's loaded, it got valid HWND handle to window…
Ezo
  • 62
  • 6
1
vote
2 answers

Transparent OpenGL Window draws weird

So i have a transparent window with OpenGL 3.3 Context (Windows 8). Whenever I try to draw something it some why draws semi-transparent like this, but I want it opaque: The fragment shader is #version 330 core uniform sampler2D Texture; uniform…
Alexey Drozhzhin
  • 193
  • 1
  • 11
1
vote
1 answer

Is there a way to get the margins previously set by `DwmExtendFrameIntoClientArea`?

Is there a way to retrieve the margins that were set by DwmExtendFrameIntoClientArea? I've scanned the documentation. I would have expected DwmGetWindowAttribute to be the most logical place to look it up. (What I would like to do is discern what…
jnm2
  • 7,960
  • 5
  • 61
  • 99
1
vote
1 answer

Delphi 7 - Screenshot without capturing form - Windows 8 - DWM.exe

Friends, Need to screenshot of the all desktop WITHOUT MY FORM and load in TImage. Success in Windows XP, 7 - with just ALPHABLEND = TRUE + SCREENSHOT PROCEDURE. But same code does not work in Windows 8 - capture all screen INCLUDING THE FORM. I…
user3424318
1
vote
0 answers

filtering windows included in the undocumented dwmapi aero flip 3d function (flag-tab)

greetings stackoverflow community! you have taught me that one way to invoke the undocumented Desktop Window Manager (DWM) / dwmapi flip3d function from a program is: typedef void (__cdecl *FlipProc)(); HINSTANCE hDwmApi =…
xyzzy71
  • 41
  • 4
1
vote
0 answers

Visual Styles disabled while DWM is working

I have an owner-drawing window caption, which I create using C#, Windows Forms, P/Invoking dwmapi.dll and several other windows libs. To detect if the DWM is enabled, I use the next code: private bool isDwmWindowFramePaintEnabled() { try { …
Artem Kachanovskyi
  • 1,839
  • 2
  • 18
  • 27
1
vote
1 answer

Getting the color of a pixel drawn by DWM in C#

I want to get Screenshots of a possible hidden Window of another application that is using drawing via direct3d or opengl. I tryed a lot of ways to receive this windows content but only got black or transparent pictures. The closest i got was by…
1
vote
1 answer

Why could DwmRegisterThumbnail fail?

I am trying to capture screen of a child window and render it on parent surface in Windows 7. HTHUMBNAIL thumbnail = NULL; HRESULT hr = S_OK; hr = DwmRegisterThumbnail( hWnd, visualHwnd, &thumbnail ); if( SUCCEEDED( hr ) ) { ... } This fails…
Dogan Demir
  • 189
  • 2
  • 9
1
vote
1 answer

Sizable App Without Border (FormBorderStyle=Sizable)

How do I hide the default window (form) border (I want to use mine), but still have the snapping and form shadow available? Developing on (Desktop) Win 8, thought it's DWM API function or something like it. PS: I'm new to DWM.
VentyCZ
  • 61
  • 3
  • 7
1
vote
1 answer

windows 8 glass effect

I am asking how to make a glass effect for winform in windows 8. I just saw some methods which call the DWM to make this before windows 8. But it seems DWM was no longer valid in windows 8. So is there any other methods to make glass effect winform…
Keqin Dou
  • 23
  • 7
1
vote
0 answers

How to detect aero basic theme

I can have Windows 7 theme (transparency in title bar) and Windows 7 basic theme (no transparency). How can I differentiate between them? Is there any API which can tell me if glass effect has been enabled. I am currently using…
Nitin Chaudhari
  • 1,497
  • 16
  • 39
1
vote
2 answers

Checking if DWM/Aero is enabled, and having that code live in the same binary for 2000/XP/Vista/7

I know the title makes little sense, mostly because it's hard to explain in just one line. So here's the situation: I have a program who's binary is targeted at Windows 2000 and newer. Now, I went ahead and added some code to check if the user is…
enriquein
  • 1,048
  • 1
  • 12
  • 28
1
vote
1 answer

Is there a way to ownerdraw (or something similar) a MainMenu in Winforms?

I'm trying to create a MainMenu for my application that looks similar to the one used by Mozilla Firefox: So that it displays over aero glass. I can think of a few ways to do this, except they would be ugly, and probably ruin the experience of the…
nobody
  • 85
  • 5
1
vote
2 answers

Is there a way to send Keys to the Windowmanager

Is there a gem to send keys to the Windowmanager with Ruby? I would like to send commands to the windowmanager (I use dwm). Something like windowmanager.send( "MOD-Shift-C" ) or stuff would be great.
musicmatze
  • 4,124
  • 7
  • 33
  • 48