Ok, I'm gonna reply to myself on part of this. I've gotten a little
further, but I'm stuck again.

> Is there a way to lock the contents of a listbox so you can't type in
> it? I'm thinking something like you'd see on a web page where you have a
> list of something like countries to choose from and you can't just type
> a new value in there.

I almost answered myself there without meaning to. I meant to be asking
about a combobox, but I found that a listbox is what I was looking for.
Now I'm just having problems getting it to be a dropdown listbox. With
the combobox set with a height of 400 and a style of "WS_VISIBLE | 2 |
WS_VSCROLL," the height was only one text character high, but it would
drop down to 400 (if there were enough items in the list). That's
exactly what I want to happen with the listbox, but if I set the height
to 400, it puts a box there with a height of 400 and no dropdown option.
So, does anyone know the style I neeed to use to get my listbox to
dropdown while keeping the height at 20 (or whatever one Character high
is)

Thanks,
Rob Rogers

Reply via email to