hansw77041
asked on
Pocket PC Context menu in a dialog and GN_CONTEXTMENU
eVC++ 4.0 IDE ClassWizard allows me to add the event handler for OnContextMenu()
However that does not appear to work on the PocketPC as it does in normal Windows.
I found this article with code for adding a context menut to a control http://www.pocketpcdn.com/articles/contextmenu.html and it works OK.
However I would like to add a Context menu to the main dialog and need some help handling the GN_CONTEXTMENU message.
ON_NOTIFY(GN_CONTEXTMENU, OnContextMenu) produces a compiler error warning C4003: not enough actual parameters for macro 'ON_NOTIFY'
Just how would I handle the GN_CONTEXTMENU message in the main dialog ?
However that does not appear to work on the PocketPC as it does in normal Windows.
I found this article with code for adding a context menut to a control http://www.pocketpcdn.com/articles/contextmenu.html and it works OK.
However I would like to add a Context menu to the main dialog and need some help handling the GN_CONTEXTMENU message.
ON_NOTIFY(GN_CONTEXTMENU, OnContextMenu) produces a compiler error warning C4003: not enough actual parameters for macro 'ON_NOTIFY'
Just how would I handle the GN_CONTEXTMENU message in the main dialog ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
void CPopupTestDlg::OnLButtonDo
{
SHRGINFO shrgi = {0};
shrgi.cbSize = sizeof(SHRGINFO);
shrgi.hwndClient = m_hWnd;
shrgi.ptDown.x = point.x;
shrgi.ptDown.y = point.y;
shrgi.dwFlags = SHRG_RETURNCMD;
if(::SHRecognizeGesture(&s
{
DoContextMenu(point);
}
else
{
Default();
}
}