Je suis en train de créer le menu contextuel pour une application win32 utilisantCréation menu contextuel API win32
case WM_RBUTTONDOWN:
{
HMENU hPopupMenu = CreatePopupMenu();
InsertMenu(hPopupMenu, 0, MF_BYPOSITION | MF_STRING, ID_CLOSE, (LPCWSTR)"Exit");
InsertMenu(hPopupMenu, 0, MF_BYPOSITION | MF_STRING, ID_EXIT, (LPCWSTR)"Play");
SetForegroundWindow(hWnd);
TrackPopupMenu(hPopupMenu, TPM_BOTTOMALIGN | TPM_LEFTALIGN, 0, 0, 0, hWnd, NULL);
}
Mais je reçois le menu contextuel toujours comme indiqué ci-dessous
alt text http://img191.imageshack.us/img191/866/70219076.png
Je veux texte sortie et lire à afficher dans le menu