TrackPopupMenu() Problem
I have a small popup menu problem, I load my menu from my resource the when I call TrackPopupMenu my menu pops up and functions correctly EXCEPT its only about 5pixel wide so you can't read any of the items on the menu. Why?????
If anyone has as small program which uses the TrackPopupMenu function and works please could you send me a copy:
tom.oram@vodafone.net
or if its a simple solution please follow this message up. Thanks in advance.
Edited by - xstreme2000 on 2/29/00 5:19:48 AM
Edited by - xstreme2000 on 2/29/00 5:54:47 AM
This is how I do the popup menu:
Maybe you can see your error there.
Edited by - Spellbound on 2/29/00 7:34:46 AM
void CMyView::OnRButtonDown(UINT nFlags, CPoint point) { CMenu Menu; ClientToScreen(&point); if( Menu.LoadMenu(IDR_POPUP) ) { CMenu* pSubMenu = Menu.GetSubMenu(0); if( pSubMenu != NULL ) { pSubMenu->TrackPopupMenu(TPM_LEFTALIGN / TPM_RIGHTBUTTON,point.x,point.y,GetParent()); } } CView::OnRButtonDown(nFlags, point);}
Maybe you can see your error there.
Edited by - Spellbound on 2/29/00 7:34:46 AM
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement