ListBoxes with MFC
i got a question, im programmin on mfc, and im having a lil trouble using the listbox. i mean i know how to insert stuff in it, but the thing i wanna do is click an item in the list box and it should show up on the textfields you know, but the only way i know how to do that is to create a button to activate it and then put it on the message maps, but what my teacher wants is just the user to either single or double click on an item, and it should automatically show up, thanx
This should be on the Windows programming board.
You want the listbox to have LBS_NOTIFY style and ON_LBN_DBLCLK in your message map. Read this for more info.