How to show menu bitmaps with transparent background
问题 I am using this code: m_bmpSwap.LoadBitmap(IDB_BITMAP2); pMnuPopup->SetMenuItemBitmaps(0, MF_BYPOSITION, &m_bmpSwap, &m_bmpSwap); It looks like: It was only a test image: How exactly do I get my image to look as if it has a transparent background? It is 24 bit image. I have seen this but I can't work it out. I adjusted to a 8 bit image with 192/192/192 as the background and loaded like this: HBITMAP hBmp; hBmp = (HBITMAP)::LoadImage(AfxGetResourceHandle(), MAKEINTRESOURCE(IDB_BITMAP2), IMAGE