Click to See Complete Forum and Search --> : ComboBoxEx


koler432
February 7th, 2008, 06:37 AM
I'm not sure whether this is a common question, but again google returned few useful results.
So I set up the comboboxex correctly, all of it. I add items, it works. However, when I click the dropdown button (it's on CBS_DROPDOWNLIST), nothing happens. The items are there, I can access them using the arrow keys. I've found people saying you need to resize the child combobox that's inside the Ex, as well as people saying you need to resize the Ex, or send a CB_SHOWDROPDOWN message to the child combobox (the latter just makes my app run slow for the first few seconds). So I have no clue what to do next. Unless this is a normal behavior and I should be handling the dropdown myself. I wouldn't know, this is my first time using Combo Boxes with winapi.
If anyone could tell me what are the exact procedures for using a ComboBoxEx, I'd appreciate.
Thanks in advance.

.pcbrainbuster
February 7th, 2008, 10:22 AM
Lucky for you I have made a program for people starting with Combo Boxes and its shows how to use all three, I'm sure you would love it so here -

Edit - I'm sorry to say that it does not use ComboBoxEx :9

VladimirF
February 7th, 2008, 01:15 PM
If anyone could tell me what are the exact procedures for using a ComboBoxEx, I'd appreciate.I suspect that the height of you combobox is too small.
Note that the rectangle you pass to the Create() function is a rectangle for a drop-down state, so make sure that its height is sufficient.

koler432
February 8th, 2008, 06:45 AM
The height indeed was too small. And the thing is, I remember trying to set a huge number on SetWindowPos(), but the genius here (me) didn't read the SetWindowPos() reference at all, so I just found out I was setting the uFlags param, not the height. The good thing is that I can blame my stupidity yesterday on the lack of sleep. ;D
Thanks guys, you were all of much help. :D