I am trying to bring up a popup menu on right clicking on a dialog box. The following code works fine at all other place(CViews, list boxes, edit boxes...), but not when right clicking on the dialog box. When used inside a dialog box, the right click only bring up a little tiny box at the size of a character(in width). Does anyone know what else I have to do to get it work?
CMenu* pPopup = menu.GetSubMenu(0);
ASSERT(pPopup != NULL);
menu.TrackPopupMenu(TPM_LEFTALIGN | TPM_LEFTBUTTON,
point.x, point.y, this);