You develop an application that uses the UpdateLayeredWindowIndirect function to update a layered window. However, when you run the application in Windows Vista or in Windows Server 2008, the function does not correctly display the layered window.

This issue occurs when the following conditions are true:

  • In the UPDATELAYEREDWINDOWINFO structure, you use both the pptSrc parameter and the prcDirty parameter.
  • The pptSrc parameter does not use the default value (0, 0).
  • The Desktop Window Manager (DWM) feature is enabled.

Additionally, when the issue occurs, you cannot manipulate the parameters to output the correct result.

Leave a Reply