CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2001
    Location
    Singapore
    Posts
    200

    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???

  2. #2
    Join Date
    Apr 1999
    Posts
    3,585
    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
  •  





Click Here to Expand Forum to Full Width

Featured