How can I change the colour of individual list items in a combo box? It must affect individual items, not the whole list. Also, it needs to be interchangable at run time (i.e. I set it to one colour when initialising and then later decide to change it to something else).
The only way I know of to do this would be an owner draw combo box. You will need to draw the text yourself, but you can choose the color for the item when you draw it.
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes. I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.
Ownerdraw of the grid button. A singleton class implentation and usage.
Continuing from the fifth article about sudoku.
Open the project in visual studio.
Go to the class view – CGridButton should be visible as a class. R…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…