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?
See Normal looking button with c++ / win32
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With