diff options
author | Sven Gothel <[email protected]> | 2011-09-04 10:51:16 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-04 10:51:16 +0200 |
commit | c8e147620c55ff16e9d687bb36a4374e97e82176 (patch) | |
tree | 3151189f2750801baf6ae1918adc3ff17b9c6833 /make/stub_includes/win32/WindowsDWM.h | |
parent | 3ea949b6a14c1ba631cb41b7439af86b21db4c05 (diff) |
Complete translucency support for Win32 - tested w/ NEWT
https://jogamp.org/bugzilla/show_bug.cgi?id=517
- Adding some Windows DWM entries to GDI (manual) for translucency support
- Add translucency setting in WindowsWGLGraphicsConfiguration*
Diffstat (limited to 'make/stub_includes/win32/WindowsDWM.h')
-rw-r--r-- | make/stub_includes/win32/WindowsDWM.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/make/stub_includes/win32/WindowsDWM.h b/make/stub_includes/win32/WindowsDWM.h new file mode 100644 index 000000000..357602dae --- /dev/null +++ b/make/stub_includes/win32/WindowsDWM.h @@ -0,0 +1,33 @@ +#ifndef WGL_DWM_VERSION_1_X + +#define DWM_BB_ENABLE 1 +#define DWM_EC_DISABLECOMPOSITION 0 +#define DWM_EC_ENABLECOMPOSITION 1 + +typedef struct tagDWM_BLURBEHIND { + DWORD dwFlags; + int fEnable; /* BOOL */ + HRGN hRgnBlur; + int fTransitionOnMaximized; /* BOOL */ +} DWM_BLURBEHIND, *PDWM_BLURBEHIND; + +typedef struct tagMARGINS { + int cxLeftWidth; + int cxRightWidth; + int cyTopHeight; + int cyBottomHeight; +} MARGINS, *PMARGINS; + +#endif /* WGL_DWM_VERSION_1_X */ + +#ifndef WGL_DWM_VERSION_1_X +#define WGL_DWM_VERSION_1_X + +BOOL DwmIsExtensionAvailable(); +BOOL DwmIsCompositionEnabled(); +BOOL DwmEnableComposition( UINT uCompositionAction ); +BOOL DwmEnableBlurBehindWindow(HWND, CONST DWM_BLURBEHIND *); +BOOL DwmExtendFrameIntoClientArea(HWND, CONST MARGINS *); + +#endif /* WGL_DWM_VERSION_1_X */ + |