diff options
Diffstat (limited to 'make/stub_includes/win32')
-rw-r--r-- | make/stub_includes/win32/WindowsDWM.h | 33 | ||||
-rw-r--r-- | make/stub_includes/win32/window-lib.c | 1 | ||||
-rw-r--r-- | make/stub_includes/win32/windows.h | 2 |
3 files changed, 36 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 */ + diff --git a/make/stub_includes/win32/window-lib.c b/make/stub_includes/win32/window-lib.c index c5c5d37b9..25355cdcd 100644 --- a/make/stub_includes/win32/window-lib.c +++ b/make/stub_includes/win32/window-lib.c @@ -1,2 +1,3 @@ #include <windows.h> #include <wingdi.h> +#include <WindowsDWM.h> diff --git a/make/stub_includes/win32/windows.h b/make/stub_includes/win32/windows.h index c30f99ebd..f2f3900ba 100644 --- a/make/stub_includes/win32/windows.h +++ b/make/stub_includes/win32/windows.h @@ -26,6 +26,7 @@ typedef HANDLE HMODULE; typedef HANDLE HINSTANCE; typedef HANDLE HPALETTE; typedef HANDLE HWND; +typedef HANDLE HRGN; typedef __int32 LONG; typedef const char* LPCSTR; typedef void* LPVOID; @@ -38,6 +39,7 @@ typedef unsigned short WORD; typedef unsigned short ATOM; typedef intptr_t DWORD_PTR; typedef intptr_t* PDWORD_PTR; +typedef __int32 HRESULT; /* Necessary handle typedefs for parsing wglext.h */ |