dwm

Windows Aero: What color to paint to make “glass” appear?

一世执手 提交于 2019-12-17 15:28:34
问题 What color must i paint in the client area in order to make glass appear? i've extended the frame of my form into the client area using: DwmExtendFrameIntoClientArea(self.Handle, margins); i cannot find any official documentation from Microsoft on what color and/or alpha the DWM will look for to replace with glass. The documentation on DwmExtendFrameInClientArea doesn't even mention that a custom color is required. There's only hearsay and myth that a special color is even required. The

Change the taskbar color of Windows 10

旧巷老猫 提交于 2019-12-14 02:53:37
问题 Is it possible to change the color of the taskbar programmatically? I want to change the color to solid (opaque) black but ONLY for the taskbar (That's the reason why I can't use the DwmSetColorizationParameters function. It changes the color for entire UI of Windows) I am able to disable the transparency by finding the taskbar's hWnd ( FindWindow("Shell_TrayWnd", null); ) and setting the transparency by DWM API function DwmEnableBlurBehindWindow but I don't know how to change the color. 回答1:

Disabling Desktop Composition using Lua Scripting

梦想的初衷 提交于 2019-12-13 05:37:53
问题 Im using Set-Up Factory from IndigoRose for building my installers. Set-up factory uses lua language in the scripting section of the installers. Now, for my application once the installing is done, I would like to run a script which disables desktop decomposition if the operating system is windows 7. Is there a way I can access dwmapi.lib in lua for doing it. Is there a system library function to access desktop window manager? I have done some googling and found out the following code for

Windows Forms Glass Effect, Make ImageBox transparent

柔情痞子 提交于 2019-12-12 01:34:48
问题 I have a windows form application, and I have extended the window's frame into the client area using DwmExtendFrameIntoClientArea to get the glass effect. Now I'm trying to show a transparent PNG image in a picture box, however the background shows up as white instead of the glass effect. How can i make the image show as transparent so that i only see the rounded gray rectangle and not the white background. My screenshot is below. Thanks. 回答1: Ok, this is a kind of easy to fix problem with

Vista live thumbnail issue with SetWindowRgn

妖精的绣舞 提交于 2019-12-11 18:14:13
问题 I know I am probably missing something, but I can't seem to get windows to show the live thumbnail preview correctly when using a window that has a region. When hitting the minimize button the preview will clip to the minimized size (160x25) rather than showing the full preview (like it does with other windows). Few points to make: 1) The preview works fine in Windows Live Messenger, so Microsoft figured out a way to do it. 2) If I call SetWindowRgn only before a window is visible, it works

Delay Loading DWMAPI on Windows XP and CodeBlocks

假装没事ソ 提交于 2019-12-11 13:55:01
问题 I have a project that I'm been fighting to build for Windows (XP) for a month solid now. The project uses gtkmm-3, C++, and the latest GCC-TDM compiler. My IDE is CodeBlocks 13.14. I'm making progress, however, I am now getting hung up on this error message... ld.exe cannot find -ldwmapi Now, DWMAPI is a DLL only available on Windows Vista and above. According to my research, you can Delay Loading of certain DLLs in cases where they are present on some systems, but not on others. The problem

Detect Win+Tab Task View

隐身守侯 提交于 2019-12-10 11:49:42
问题 On Windows 10, you can press Win+Tab to get a "Task View" view of all your windows. I'm trying to check if this is active at any given time. I have tried using a Low Level Keyboard Hook with WH_KEYBOARD_LL but this only allows me to detect the keypress, not if the switcher is active. I've looked at the Windows DWM API and haven't found anything else either. I have also tried using EnumWindows() and EnumChildWindows(GetDesktopWindow(), ...) and did not find any difference in the output between

How do I display open IE tabs as DWM thumbnails?

ぐ巨炮叔叔 提交于 2019-12-09 15:06:59
问题 I am building a WPF application in C# and I want to display thumbnails of open IE tabs in a listbox. I'm essentially trying to duplicate the DWM functionality in Windows 7. I have figured out how to enumerate a list of open tabs using Interop.ShDocVW, but in order to use the DWM API calls, I have to pass in an hwnd , and the tabs all share the same handle as Internet Explorer. So I've been messing with EnumWindows and EnumChildWindows but I can't get anything to work. Any suggestions on how

Using DwmIsCompositionEnabled (JwaDwmApi) on pre-vista causes error

你说的曾经没有我的故事 提交于 2019-12-08 12:24:36
问题 Been trying to use the following code in order to check if Windows Aero is enabled: function AeroEnabled: boolean; var enabled: bool; begin // Function from the JwaDwmapi unit (JEDI Windows Api Library) DwmIsCompositionEnabled(enabled); Result := enabled; end; ... if (CheckWin32Version(5,4)) and (AeroEnabled) then CampaignTabs.ColorBackground := clBlack else begin GlassFrame.Enabled := False; CampaignTabs.ColorBackground := clWhite; end; However, doing so on a pre-vista machine causes the app

Custom window frame with DWM: how to handle WM_NCCALCSIZE correctly

断了今生、忘了曾经 提交于 2019-12-07 05:54:09
问题 I'm trying to make a custom window frame for my form using DWM. The platform is C# WinForms, Pinvoking DWM. Following the MSDN article on making custom window frame with DWM, the main steps are next: Remove standard frame (non-client area), returning 0 in answer to WM_NCCALCSIZE message Extend the frame into client area using DwmExtendFrameIntoClientArea function I handle WM_NCCALCSIZE message in the next way: protected override void WndProc(ref Message m) { switch (m.Msg) { case WM