我正在编写一个 Windows GUI 应用程序,并且需要一个普通的按钮。
我正在使用此代码来生成按钮:
hwnd = CreateWindowEx(
NULL,
"BUTTON",
"Button",
WS_VISIBLE | WS_CHILD | BS_PUSHBUTTON,
CW_USEDEFAULT, CW_USEDEFAULT,
60, 25,
parentHwnd, NULL,
GetModuleHandle(NULL), NULL);
我希望按钮看起来像这样(忽略背景颜色):
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?
See 使用 c++ / win32 的正常外观按钮 https://stackoverflow.com/questions/1475021/normal-looking-button-with-c-win32
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)