Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5968629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:07:02+00:00 2026-05-22T20:07:02+00:00

Using C++ with MFC. I’m using a grid control which derives from CWnd (specifically

  • 0

Using C++ with MFC. I’m using a grid control which derives from CWnd (specifically the MFC Grid control on codeproject). I want to display a context menu when the user right clicks on a cell. My thinking is to handle the ON_WM_CONTEXTMENU() message.

However, where is the best place to handle this, in a OnContextMenu in my (derived) grid control class or in the OnContextMenu in the dialog box class that holds the grid control? Is there a convention in MFC?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:07:02+00:00Added an answer on May 22, 2026 at 8:07 pm

    If there is a convention, I haven’t noticed.

    I would choose based on who has the information required to build the menu, and who will be processing the commands resulting from the menu selection.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have c++ program which display images, I want to move from one image
I have tree control object created using CTreeCtrl MFC class. The tree control needs
Using MFC's TRACE macro or OutputDebugString from the Windows API, you can write to
I am using MFC. I need a control just like listControl, it has such
I'm using MFC for Visual Studio 2003. I have an Edit Control with ID
how to get drives letters which are available (not in use) in MFC using
I have a problem with a c++ socket. I'm using CAsyncSocket from MFC that
Just like Microsoft Internet Explorer, there is web browser control functionality: Using MFC to
Using Visual Studio 2010 C++. I have a project which uses MFC and I
I am playing with a CAD application using MFC. I was thinking it would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.