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?