I'm writing a simple program in MFC that draws a a pattern according to a function.
I've added support for changing colors of the graphics. However, in the dialog, when the user tries to select the color button to see the color choices, the drop-down takes an abnormally long time to show up and appears frozen for about 5 seconds.
Nothing is being rendered in the meantime, nor are there any other obvious processes that might be slowing things down.
Does anyone know why this is happening?