BeegOrange
Programmer
Hello,
I have a menu which gets called like this:
void CCinitView::OnContextMenu(CWnd* pWnd, CPoint point)
{
CMenu menu;
menu.LoadMenu(IDR_POPUP_CRYPTO_MENU);
menu.GetSubMenu(0);
menu.TrackPopupMenu(TPM_RIGHTALIGN | TPM_RIGHTBUTTON, point.x, point.y, this);
}
Unfortunately, when I right click, the menu gets displayed as a thin line! The submenu's get displayed OK when I move the mouse, but the top-level is only shown as a thin line.
In the resource editor, the menu always displays as horizontal, and never saves to be vertical (like a good popup menu should).
How is this problem to be solved??
Thanks in advance!
I have a menu which gets called like this:
void CCinitView::OnContextMenu(CWnd* pWnd, CPoint point)
{
CMenu menu;
menu.LoadMenu(IDR_POPUP_CRYPTO_MENU);
menu.GetSubMenu(0);
menu.TrackPopupMenu(TPM_RIGHTALIGN | TPM_RIGHTBUTTON, point.x, point.y, this);
}
Unfortunately, when I right click, the menu gets displayed as a thin line! The submenu's get displayed OK when I move the mouse, but the top-level is only shown as a thin line.
In the resource editor, the menu always displays as horizontal, and never saves to be vertical (like a good popup menu should).
How is this problem to be solved??
Thanks in advance!