I have created a menu in the resource editor and have
implemented the following code (in my View class)
void CMBFView::OnContextMenu(CWnd *p, CPoint point)
{
CMenu Me;
Me.LoadMenu(ID_MY_MENU);
Me.TrackPopupMenu(TPM_RIGHTALIGN | TPM_RIGHTBUTTON,
point.x, point.y, this);
SetMenu(&Me);
Me.Detach();
}
And lo and behold the menu appears when I right click on the
window, the problem is the menu is so narrow I can't see the
labels, even though the menu items are there !
I am baffled have I missed something "obvious" ?
Please help. Thanks.
implemented the following code (in my View class)
void CMBFView::OnContextMenu(CWnd *p, CPoint point)
{
CMenu Me;
Me.LoadMenu(ID_MY_MENU);
Me.TrackPopupMenu(TPM_RIGHTALIGN | TPM_RIGHTBUTTON,
point.x, point.y, this);
SetMenu(&Me);
Me.Detach();
}
And lo and behold the menu appears when I right click on the
window, the problem is the menu is so narrow I can't see the
labels, even though the menu items are there !
I am baffled have I missed something "obvious" ?
Please help. Thanks.