News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Bitmap in popup menu

Started by clamicun, April 03, 2019, 04:41:51 AM

Previous topic - Next topic

aw27

Quote from: clamicun on April 04, 2019, 09:13:55 AM
AW,

It is a bad practice, but is becoming widespread, to ask for help ...

Yes My Lord, I think you are a bit harsh this time.

Bitmap button instead of the text "Select ..."
   POPUP "Select..."  ;   !! here the button
   BEGIN

It is not very misleading

I was addressing JJ on this one.  :biggrin:
Of course, I can understand his difficulties with MASM but he wasted my time without a simple thank you after realizing from my example that GetMenu is indeed for the main menu, when he wanted a popup (something he should have mentioned, of course).  :badgrin:

jj2007

Quote from: AW on April 04, 2019, 05:55:42 PMhe wasted my time without a simple thank you after realizing from my example that GetMenu is indeed for the main menu, when he wanted a popup

Thank you so much, José :icon14:

Yes, I had a quick look at your example and saw that you used exactly the same code. So I realised that it must be something else. I am so grateful that you are around to give us n00bs a helping hand :t

Quote from: AW on April 04, 2019, 05:46:23 AMHMENU hmenuBar = GetMenu(hWnd);
      
      HBITMAP hBitmap = (HBITMAP)LoadImage((HMODULE)GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP1), IMAGE_BITMAP, 0, 0, LR_DEFAULTSIZE);
      SetMenuItemBitmaps(hmenuBar, IDM_EXIT, MF_BYCOMMAND, hBitmap, hBitmap);

TimoVJL

#17
EDIT: OK.
May the source be with you

clamicun



I was addressing JJ on this one. 
ok.   excuse me