How do I know what item was selected in a Combo box?

Catch the LN_SELECT message from the combo box, then send an LM_QUERYSELECTION to get the index of the selection, then a LM_QUERYITEMTEXT to get the selected text.

Credit: Pete Norloff


[Back: Do you have code to save/restore the clipboard?]
[Next: How do I get a bitmap into a dialog in a DLL?]