Normal looking button with c++ / win32

前端 未结 4 1350
忘掉有多难
忘掉有多难 2021-01-22 01:27

I\'m trying to make a button but it always looks like windows 95 flat button. How do I make it look vista style?

    hWndEdit = CreateWindowA(\"button\", \"Test\         


        
4条回答
  •  萌比男神i
    2021-01-22 02:04

    Create a file named "MyApp.exe.manifest" in your project directory (MyApp is your application's name). Then open it with your fav editor and copy & past following code in it:

        
        
    
    
    Your application description here.    
        
        
                
            
        
    
    

    And after you've done that, add this file to your Visual Studio project (right-click on the project icon and select "Add"->"Existing item".

    Adding this manifest file to your VS solution is enough to have XP themes enabled.

    Hope this helps...

提交回复
热议问题