Re: encore des menu popup
Code:
1 2 3 4 5 6 7 8
| void CInterfaceDlg::OnRButtonDown(UINT nFlags, CPoint point)
{
CMenu menu;
ClientToScreen(&point);
menu.LoadMenu(IDR_MENUPOPUP);
ASSERT (menu.m_hMenu != NULL );
menu.GetSubMenu(0)->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y, this);
} |
:?: ça marche ?
Re: encore des menu popup
Citation:
Envoyé par bigboomshakala
Code:
1 2 3 4 5 6 7 8
| void CInterfaceDlg::OnRButtonDown(UINT nFlags, CPoint point)
{
CMenu menu;
ClientToScreen(&point);
menu.LoadMenu(IDR_MENUPOPUP);
ASSERT (menu.m_hMenu != NULL );
menu.GetSubMenu(0)->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y, this);
} |
:?: ça marche ?
Ce code affiche seulement le 1er sous menu du menu que j'ai créé dans l'éditeur de ressource