menu names,unusedqq

menu names,unusedqq

I have some questions and would like if someone could help me:
1-I want the menu names not having any letter underlined. Not using & does not works.
2-In my 5.0 version documentation there is no mention to UNUSEDQQ and YIELDQQ. I used then,cloning its use from CHAOS sample, and they work in 5.0. Where can I find help on then?
3-How to make a menu name show a numeric value contained in a variable.
I tried writing the numeric variable in a text variable, concatenating this text with ''C, and renaming the menu name with the concatenated result. It didn't work.
Geraldo Garcia

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

UNUSEDQQ is a Microsoft hack to prevent an unused variable from triggering an unused variable warning. It doesn't do anything.

If I recall, YIELDQQ tells the thread scheduler to reschedule the thread - I tend to prefer a call to SLEEPQQ with a short duration instead.

I can't help with the other items.


Retired 12/31/2016

Well, I'll try to provide answers to 1) and 3). As for 1) I think it's rude to the user. As for 3) (related with 1), if I recall correctly, MODIFYMENUSTRINGQQ is broken in 5.0x. You may change the name using Win32 API SetMenuItem or, simpler, ModifyMenu. This sample demonstrates how to access handles of main menu and submenus -- just apply a different set of flags for ModifyMenu.



Leave a Comment

Please sign in to add a comment. Not a member? Join today