Just provide
COMBOBOX to CreateWindow() as the class name instead of your own precreated class, unlike you usually do when creating an overlapped window.
Quote:
When Windows starts, it creates the system global classes for all applications. These classes contain the following familiar standard controls:
- Edit
- Listbox
- ComboBox
- ScrollBar
- Button
- Static
|
Example:
Code:
HWND CreateWindow( "COMBOBOX",
"Default String",
style,
x,
y,
width,
height,
parent,
menu,
instance,
Optional Parameter
);
Here they seem to go deeper with explaining.
Here you can also find info on possible combobox styles.
Sorry for the quality of the material on the links, I have just googled them up and didn't look through them too thoroughly.
Cheers.