1 ! Copyright (C) 2009 Joe Groff.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: alien alien.c-types alien.data alien.libraries
4 alien.syntax classes.struct kernel math system-info.windows
12 { cyBottomHeight int } ;
16 STRUCT: DWM_BLURBEHIND
20 { fTransitionOnMaximized BOOL } ;
22 : full-window-margins ( -- MARGINS )
23 -1 -1 -1 -1 <MARGINS> ; inline
25 << "dwmapi" "dwmapi.dll" stdcall add-library >>
29 FUNCTION: HRESULT DwmExtendFrameIntoClientArea ( HWND hWnd, MARGINS* pMarInset )
30 FUNCTION: HRESULT DwmEnableBlurBehindWindow ( HWND hWnd, DWM_BLURBEHIND* pBlurBehind )
31 FUNCTION: HRESULT DwmIsCompositionEnabled ( BOOL* pfEnabled )
33 CONSTANT: WM_DWMCOMPOSITIONCHANGED 0x31E
35 : composition-enabled? ( -- ? )
37 [ { bool } [ DwmIsCompositionEnabled drop ] with-out-parameters ]