Does anyone know if it is possible to change the icons on the MFC VSListBox Dialog Control?
Specifically I’m trying to change the folder icon to a ‘+’ icon instead:

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I haven’t tried it myself, but
CVSListBoxBase::AddButton()seems to be what you need.CVSListBoxderives fromCVSListBoxBase, and when you callCVSListBoxBase::SetStandardButtonsto set the buttons, it callsAddButton()for each button.The documentation for
CVSListBoxBaseis unfinished, so you’ll have to "play" with it, but you can read the code in afxvslistbox.cpp/.h