flat assembler
Message board for the users of flat assembler.
Index
> Windows > bold text in menus |
Author |
|
kohlrak 06 Jan 2007, 02:00
I don't know much about the api, yet, but i've noticed menus and window text appear to be the same. So, if you can make bolded text in other areas, you might be able to use that code to bold your menu text, but i know so little about the winapi that i don't know if you can bold a text before calling the function that prints it in menu format...
|
|||
06 Jan 2007, 02:00 |
|
LocoDelAssembly 06 Jan 2007, 02:38
How do you set MF_DEFAULT?
I just tried adding "invoke SetMenuDefaultItem, [hTrayMenu], IDM_SHOWHIDE, FALSE" to http://flatassembler.net/examples/tray.zip just below of "invoke AppendMenu, eax, MF_STRING, IDM_SHOWHIDE, szShowHide" and worked great. Note that AppendMenu does not accept MF_DEFAULT flag, you have to use InsertMenuItem but it requires a MENUITEMINFO and I think is a little bit hard to use than AppendMenu and then SetMenuDefaultItem. |
|||
06 Jan 2007, 02:38 |
|
thecf 06 Jan 2007, 04:21
yea i tried SetMenuDefaultItem and it worked great.
push 0 ; fByPos push IDM_REFRESH ; uItem push [hPopupMenu] ; hMenu call [SetMenuDefaultItem] |
|||
06 Jan 2007, 04:21 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.