Normal looking button with c++ / win32

前端 未结 4 1309
忘掉有多难
忘掉有多难 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条回答
  •  故里飘歌
    2021-01-22 01:45

    It can only look Vista style in Vista, mind you. Your application must also embed a manifest as per http://msdn.microsoft.com/en-us/library/aa289524(v=VS.71).aspx to enable visual styles.

提交回复
热议问题