Re: Safe ID Range for my COMMAND_RANGE message map entry
- From: "Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp>
- Date: Sun, 06 May 2007 11:14:05 -0400
Edward Mitchell wrote:
I am using COMMAND_RANGE to create fairly long list of items for one of my menus. If I create an id such as ID_ITEM1, the system seems to pick a number in the 32000 on up range. I could spell out all the commands ID_ITEM1, ID_ITEM2, ID_ITEM3, etc. but what I'd like to do is to define ID_FIRST and ID_LAST. I'm worried if I define first as 33000 and last as 33050, then sometime later, the automatic assignment will come along and fill in the hole.
I notice the MRU list is spelled out for every entry (ID_FILE_MRU_FILE1, 2, 3, ... 16 with the actual numbers going from 57616 to 57631.
My question is if there is a range of numbers in the 16 bit ID set which is completely under my control. Someplace where I am guaranteed that one of the wizards won't allocate numbers between my beginning and end?
There is no range that is explicitly reserved. However, the numbers that the wizard uses are controlled by the counters in last few lines in the project's resource.h file, so you can see where it's going and add your own #defines in that file for your own ID ranges.
--
Scott McPhillips [MVP VC++]
.
- References:
- Safe ID Range for my COMMAND_RANGE message map entry
- From: Edward Mitchell
- Safe ID Range for my COMMAND_RANGE message map entry
- Prev by Date: Safe ID Range for my COMMAND_RANGE message map entry
- Next by Date: Re: Very strange debugging results, how can this be explained???
- Previous by thread: Safe ID Range for my COMMAND_RANGE message map entry
- Next by thread: Re: Safe ID Range for my COMMAND_RANGE message map entry
- Index(es):
Relevant Pages
|