You're looking at a tricky bit of code. If you call into user32.dll (the call is GetMenuItemInfo), you can get a pointer to a menu item info structure which will include the MFT_BITMAP flag if the menu item has a bitmap. You can also get a handle to the bitmap itself. This is going to be tricky since mswfun32.inc does not provide you with an interface to GetMenuItemInfo. Once you have the handle to the bitmap, you'll have to figure out what to do with it -- I suppose you could compare it to a stored bitmap to verify it's the right one, but I haven't really thought that part out. If you're familiar with windows programming, go for it.
SilkTest doesn't allow you to use CaptureBitmap on a menu. You can try picking the menu and then call CaptureBitmap using coordinates as to where the menu item bitmap resides relative to the MainWin. For example:
I was looking to do some bitmap comparisons so that I could tell if my menu was currently displaying a "+" or "-" sign for a sub-menu title. Instead of grabbing the bitmap and comparing it to an image I already had stored, I decided to use the image's CRC.
Something like this:
iImageCRC = MyHtmlImage.GetBitmapCRC ()
//if my image is one of my two possible "+" signs, then click on it to expand the submenu
if (iImageCRC == 8056 | | iImageCRC == 26993)
The CRCs of "8056" and "26993" were determined by running a little case that determined the CRC of a bunch of images I was interested in at the time.