I have the following code to generate a ComboBox:
HWND h = CreateWindowEx("COMBOBOX", "Text", CBS_DROPDOWN | WS_CHILD, WS_EX_CLIENTEDGE, ParentWnd, 0, 0, 200, 24);
The combobox is created on my form no problem, however if I try resizing it with the following it won't work:
SetWindowPos(h, 0, 0, 0, NewWidth, OldHeight, SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);
Any idea why would this happen? It seems to resize the wrong portion of the combobox which is somehow transparent.
I have been trying for days with different things, it is probably something stupid but I cannot put my finger on it.
Best Regards, Alain Deschenes http://www.arianesoft.ca