On Sat, 24 Dec 2022 08:35:06 +0100, R.Wieser wrote:
Hello all,
I'm putting a combobox onto a dialog using CreateWindowEx, only setting the WS_VISIBLE and WS_CHILD styles (no CBS_* ones). As a result I get something that looks the same as if I specified the CBS_DROPDOWN style.
Question : what am I actually getting / whats the difference between no
style and the CBS_DROPDOW one ?
Regards,
Rudy Wieser
Considering that a combobox can only have 3 main styles where all of them
are non zero, it has to have a default style to represent style with zero value. That default style is CBS_SIMPLE. Whether CBS_SIMPLE is specified or
not when the control is created, and whether the style value of the created control actually has CBS_SIMPLE or not. It's kind of weird, but that's just
how it is.
Some controls would complain if they're created with an invalid style, but
at least combobox, doesn't complain.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)