HWND controlhwnd = handle zu einem editcontrol
bitmappath = "icons/exit.bmp";
hBmp_Install = LoadBitmapFile(bitmap.c_str());
mii.fMask = MIIM_TYPE | MIIM_ID | MIIM_DATA;
mii.fType = MFT_OWNERDRAW;
mii.wID = IDM_EXIT;
mii.dwItemData = ( ULONG_PTR)controlhwnd;
InsertMenuItem (hpopup, IDM_EXIT, TRUE, &mii);
SetMenuItemBitmaps(hpopup, IDM_EXIT, TRUE, hBmp_Install, hBmp_Install);