I have created a CFormView which displays some graphics and using a timer, the graphics will be constanly updated.

As i need to have a context menu, I have used the CMenu::TrackPopupMenu() function to display the menu that i have created. However i have a problem with this. When the menu is displayed by calling the TrackPopupMenu() function, the graphics in the CFormView does not get refreshed. When the menu is closed, the CFormView will be updated again but when the menu is being displayed the graphics will not be updated.

It seems that the menu is being displayed very much like a domodal dialog box......Is there a solution to this problem???