Code:
sFile = "C:\Temp\MyBMP.bmp"
hDib = LoadImage(0, sFile, IMAGE_BITMAP, 16, 16, LR_LOADFROMFILE Or LR_CREATEDIBSECTION)
Call SetMenuItemBitmaps(hMenu, 1, MF_BYPOSITION, hDib, hDib)
Trying to add a bitmap to a menu item with the above code . The bitmap is added successfully BUT the background is not transparent... It has a white background.
According to the docs, when passing the LR_CREATEDIBSECTION flag to the LoadImage function, the resulting image background should be transparent.
Is this issue due to the bmp resolution ? pixels per inch.
Am I understanding this correctly ?