|
-
May 2nd, 2003, 04:44 AM
#1
Problem with context menu
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???
-
May 2nd, 2003, 06:02 AM
#2
Are you using the TPM_NONOTIFY and TPM_RETURNCMD flags? I think they will force the menu to act modally.
Gort...Klaatu, Barada Nikto!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|