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.
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.
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio: FeinWindows - replacement windows manager for Visual Studio, and more...
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.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.