Re: [GD-Windows] Unique menu IDs
Brought to you by:
vexxed72
From: <cas...@ya...> - 2002-10-16 01:15:06
|
resource.h defines the following: #define _APS_NEXT_RESOURCE_VALUE 109 #define _APS_NEXT_COMMAND_VALUE 40004 #define _APS_NEXT_CONTROL_VALUE 1013 #define _APS_NEXT_SYMED_VALUE 101 I think that those values are used internaly by the resource editor, but maybe you can also use them safely. In your case you would use: #define CUSTOM_ID0 _APS_NEXT_COMMAND_VALUE+0 #define CUSTOM_ID1 _APS_NEXT_COMMAND_VALUE+1 etc. Ignacio Castaño cas...@ya... ----- Original Message ----- From: "Pierre Terdiman" <p.t...@wa...> To: <gam...@li...> Sent: Tuesday, October 15, 2002 6:25 AM Subject: [GD-Windows] Unique menu IDs > Another little question.... > > I have an app with a menu, using some static menu IDs known at compile time > (in resource.h, standard stuff). > > Now I'm creating new menu entries at runtime, using InsertMenuItem. > Everything works well, but there's something I'm not too pleased with : the > wID member in the MENUITEMINFO. I just hardcoded some IDs there, but I fear > they'll collide one day with the static ones. > > So, is there a way to get free IDs at runtime, or a way to create them in a > safe way, etc ? > > Minor issue there, but while I'm wandering in the Win32 code... > > Thanks, > > Pierre > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=555 _______________________________________________________________ Yahoo! Messenger Nueva versión: Webcam, voz, y mucho más ¡Gratis! Descárgalo ya desde http://messenger.yahoo.es |