Locked How to disable Aero just for my application

  • Wednesday, January 04, 2012 4:27 PM
     
     

    Hi,

    I need to disable programatically the Windows Aero in my application. I tried using "DwmEnableComposition" function, but it effected all applications. Is there a way to do it for my application only ?

    Yoav.

      

All Replies

  • Wednesday, January 04, 2012 4:50 PM
     
     
    I don’t think you can.  What of your functionality is incompatible with Aero?
     
    Thanks,
    David

    Efficiently read and post to forums with newsreaders: http://communitybridge.codeplex.com
  • Wednesday, January 04, 2012 6:38 PM
     
     
    DWM is a Direct3D app that replaces the GDI-based traditional desktop. You either run it as the desktop, or don't run it as the desktop.

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
  • Thursday, January 05, 2012 9:08 AM
     
     
    I am trying to capture the image of the view (based on OpenGL) using bitblt but the bitmap does not contain the view content. Also I have some dirt and refresh problems when the view being resized.
  • Thursday, January 05, 2012 3:42 PM
     
     Answered
    You might want to try setting the WS_EX_COMPOSITE style on the view.  I had another project where, without this style, the window wasn’t getting WM_PAINT messages when Aero was disabled or not present (e.g. in XP).  This seems to be the opposite of your problem, but I would still give it a try.
     
    I’ve also heard scattered problems of unclean refresh during resize with Aero, but this makes no sense to me because Aero adds double-buffering so if anything the screen updates should be smoother.
     
    -- David
     
    I am trying to capture the image of the view (based on OpenGL) using bitblt but the bitmap does not contain the view content. Also I have some dirt and refresh problems when the view being resized.

    Efficiently read and post to forums with newsreaders: http://communitybridge.codeplex.com