How to access the Desktop Composition Engine from a WinForms app?
Posted
by MusiGenesis
on Stack Overflow
See other posts from Stack Overflow
or by MusiGenesis
Published on 2010-03-19T17:30:09Z
Indexed on
2010/03/19
17:31 UTC
Read the original article
Hit count: 491
Is it possible to access Desktop Composition Engine in Windows Vista from a winforms application? The DCE apparently involves applications rendering to DCE buffers instead of directly to the screen. Since a winforms app has no way of getting information about the monitor's refresh rate and scanline status (other than via DirectX), animation in a winforms app is subject to tearing effects. With DCE enabled, the tearing effects are lessened but still there (apparently the DCE can still grab a buffer that your app is halfway through writing to and render it to the screen, thereby producing the half-one-frame-half-of-the-next tearing effects).
Is there any way for my winforms app to communicate with the DCE and possible avoid rendering during buffer switchover times?
© Stack Overflow or respective owner