Hello
I cant find a correct style which would make the child window without 3D border
For e.g. I use now
Which style makes it flat?Code:WS_CHILD | WS_VISIBLE | BS_RADIOBUTTON,
Thanks in advance
Printable View
Hello
I cant find a correct style which would make the child window without 3D border
For e.g. I use now
Which style makes it flat?Code:WS_CHILD | WS_VISIBLE | BS_RADIOBUTTON,
Thanks in advance
Assuming you're creating a button, there's BS_FLAT.
gg
Yes I tried that before but it changes only the button... In my case Radiobutton or checkbox. The child window remains with 3D border
I'm confused. If the window style contains BS_RADIOBUTTON and the BS_FLAT style makes button flat, what other child window are you referring to? Maybe a bit more code would help.
HWND hwnd;
hwnd = CreateWindowEx(
WS_EX_CLIENTEDGE,
g_szClassName,
"The title of my window",
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT, 240, 120,
NULL, NULL, hInstance, NULL);
The first parameter (WS_EX_CLIENTEDGE) is the extended windows style, in this case I have set it to give it a sunken inner border around the window. Set it to 0 if you'd like to see the difference. Also play with other values to see what they do.
You can remove styles by using a boolean AND.