How to use WS_EX_LAYERED on child controls

后端 未结 1 1350
青春惊慌失措
青春惊慌失措 2021-01-06 15:36

Since windows 8, WS_EX_LAYERED is available to use on child controls, (so says MSDN) However I\'ve been unable to make it work. In the following code, I\'m trying to make

1条回答
  •  既然无缘
    2021-01-06 16:40

    Thanks to the link @Hans suggested I have found the answer. A manifest entry is required that specifies at least Windows 8 compatibility (child layering support only started with Windows 8). The following should be included as a manifest file for anyone wanting to use layered child windows.

    
       
        
          
          
        
      
      
        
            
        
      
    
    

    For the purposes of completeness, I've included the entire file but the relevant tag is the element specifying the GUID for Windows 8.

    You may declare compatibility for other OS versions too, as described at the docs page "Targeting your application for Windows".

    0 讨论(0)
提交回复
热议问题