1 ! (c)2009 Joe Groff bsd license
2 USING: alien alien.c-types alien.data alien.libraries
3 alien.syntax classes.struct kernel math system-info.windows
11 { cyBottomHeight int } ;
13 STRUCT: DWM_BLURBEHIND
17 { fTransitionOnMaximized BOOL } ;
19 : <MARGINS> ( l r t b -- MARGINS )
20 MARGINS <struct-boa> ; inline
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 ]