As a newcomer to VC++, I need a little help. Have added menu item and toolbar button to a basic drawing program. Both of these bring up a dialog box with 4 radio buttons for changing the drawing color.

Have been able to get the program to display the dialog and it appears to select a new color, but when I go back to drawing, color has not changed.

Can anyone provide a hint or snippet of code for how I can change the drawing color?

Thanks in advance for any assistance.