c++ - [MFC]how to make disable an Item in combobox? -


i'm using visual studio 2012 mfc standard library.

i want make 1 item not able selected item can see in list.

how can that? i'm novice in mfc. plz me

though not exact solution, can make this. when item selected, there no action , leave message item invalid so, if can change color of item then, it's complete function want. don't know how change color 1 item.

plz give me help!t.t

to change color of 1 item in list box have replace list box painting. set "owner draw" style , write message handler wm_drawitem. called each item in list box. there several examples @ codeproject: here 1 of them:

http://www.codeproject.com/articles/135855/owner-drawn-clistbox


Comments