[GD-Windows] Unique menu IDs
Brought to you by:
vexxed72
From: Pierre T. <p.t...@wa...> - 2002-10-15 04:26:59
|
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 |