News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

SetMenuItemBitmaps

Started by clamicun, January 12, 2017, 03:30:30 AM

Previous topic - Next topic

clamicun

There is no problem to put bitmaps into a popup menu ...

before creating the main window
INVOKE LoadMenu,hInst,600  ; menu ID
mov hMenu, eax

and in WM_CREATE

INVOKE LoadBitmap, hInstance, bmpID
mov hBmp1, eax
INVOKE SetMenuItemBitmaps, hMenu, IDM, MF_BYCOMMAND, hBmp1, hBmp1

Since hours I am trying to put a bitmap into the "headmenu" instead of text "&File  &Edit and so on".
Possible somehow ?

ragdog

Why use you not a Toolbar with a Popup menu?




Greets,

clamicun

ragdog  ?

if you look at the sourcecode ...
it is a popup menu

ragdog

I have look in your code and you have say it
QuoteThere is no problem to put bitmaps into a popup menu

but i understand your question you want put a bitmap @ the header menu &File etc

QuoteSince hours I am trying to put a bitmap into the "headmenu" instead of text "&File  &Edit and so on".
Possible somehow ?

Correct?

Why you not use a toolbar with a popupmenu expl: my screenshot?

TBN_DROPDOWN .. TrackPopupMenu etc

HSE

Hi Clamicun!
In DonkeyStable.com there is some toolbar example that look like your picture.
Equations in Assembly: SmplMath

clamicun

HSE,
thank you. That is what I was looking for.

clamicun

HSE,
although the example (written in ?) gives me 50 or more errors. I hate that. 

clamicun

ragdog,
but i understand your question you want put a bitmap @ the header menu &File etc
Correct?

Correct !

Why you not use a toolbar with a popupmenu expl: my screenshot?
TBN_DROPDOWN .. TrackPopupMenu etc

some example somwhere ?

HSE

Hi Clamicun!

It's GoAsm, but doesn't matter, you can read the API calls.

Regards.   

(Just in case: I never could assemble nothing with GoAsm... neither I tried enough).
Equations in Assembly: SmplMath

clamicun

Loaded down GoAsm ...

Interesting ... not one example from  donkeystable does it ...

clamicun

HSE, good evening,

Quote:
(Just in case: I never could assemble nothing with GoAsm... neither I tried enough).

I am trying to be friends with goasm.
Do you know anyone who ever compiled MenuTB.assm ?

ragdog,
the screeshot you showed  is from what ?

HSE

Hi Clamicun!
I don't know, but you can ask in GoAsm subforum.
Equations in Assembly: SmplMath

clamicun

Last question on this ...

Does someone know how to translate this goasm syntax

;Start the button IDs at one so we don't use 0 (we'll have to dec in order to get the right menu)
TbBtns TBBUTTON <0,1,TBSTATE_ENABLED,TBSTYLE_AUTOSIZE | TBSTYLE_DROPDOWN,0,0,0>
      TBBUTTON <1,2,TBSTATE_ENABLED,TBSTYLE_AUTOSIZE | BSTYLE_DROPDOWN,0,0,1>
      TBBUTTON <3,3,TBSTATE_ENABLED,TBSTYLE_AUTOSIZE | BSTYLE_DROPDOWN,0,0,2>
       TBBUTTON <4,4,TBSTATE_ENABLED,TBSTYLE_AUTOSIZE | BSTYLE_DROPDOWN,0,0,3>

into something which might work ?