Normal looking button with c++ / win32

前端 未结 4 1355
忘掉有多难
忘掉有多难 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 02:08

    You need to add a manifest for your .exe that specifies that you want to use themes. The default behavior is to use Win9x/NT/2K controls for the sake of compatibility - themed XP+ controls are slightly larger. This explains how to add such a manifest in detail.

提交回复
热议问题