I have created a combobox...

invoke CreateWindowEx,0,_combobox,ButtonCaption,WS_VISIBLE+WS_CHILD+CBS_DROPDOWN+CBS_AUTOHSCROLL,16,210,200,200,,108,,NULL

Everything works fine except when adding more text than can be viewed vertically, no scroll bar appears.

I cannot find a 'cbs' to enable this. In fact, the docs imply that this should be automatic.

Please help.
Posted on 2003-04-13 11:43:41 by msmith
WS_VSCROLL
Posted on 2003-04-13 12:25:45 by comrade
Thanks... works great!

I have the MSDN Library and the Win32 DDK Reference and could not find this info.

Do you have a better reference or do you just learn these things from experience?
Posted on 2003-04-13 13:36:24 by msmith
All the WS_ styles are useable on any type of windows (or controls) that is covered in the documentation under CreateWindow in both the Win32.hlp file and the MSDN disks. There are some however that have no effect because of the properties of the control.
Posted on 2003-04-13 14:00:54 by donkey