为什么我的Button看起来像是从1990年? [英] Why does my Button look like it's from 1990?
本文介绍了为什么我的Button看起来像是从1990年?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在写一个Windows GUI应用程序,我已经来了需要有一个正常的按钮。
I'm writing a Windows GUI app and I have come on the need to have a normal button.
我使用此代码生成按钮:
I am using this code to generate the button:
hwnd = CreateWindowEx(
NULL,
"BUTTON",
"Button",
WS_VISIBLE | WS_CHILD | BS_PUSHBUTTON,
CW_USEDEFAULT, CW_USEDEFAULT,
60, 25,
parentHwnd, NULL,
GetModuleHandle(NULL), NULL);
我想让按钮看起来像这样(忽略背景颜色):
I want the button to look like this (Ignore the background colour):
但最终看起来像这样:
我想我缺少一种风格或东西。
But it ends up looking like this:
I think I'm missing a style or something. What can I do to make it look like the first button?
推荐答案
这篇关于为什么我的Button看起来像是从1990年?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文