Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

Using DwmEnableComposition

$
0
0

I have a Fortran application with an embedded OpenGL window. I need to call DwmEnableComposition to turn off Aero so that the buttons refresh correctly but I can't work out how to do it. I've added Dwmapi.lib to the linker line but still get

unresolved external symbol dwmiscompositionenabled referenced in function WinMain

My interface is

        integer(LRESULT) function DwmEnableComposition(c) bind(c)
            import
            integer(UINT), value :: c
        end function DwmEnableComposition

and my calling sequence is

         lret = DwmIsCompositionEnabled(compositionEnabled)
         if (compositionEnabled) then
             DWM_EC_DISABLECOMPOSITION = 0
             lret = DwmEnableComposition(DWM_EC_DISABLECOMPOSITION)
         else
             compositionEnabled = .false.
         end if

Any ideas greatly appreciated.

 


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>