https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=352014
AliR.
That seems to be a bug. I'm not sure which part is the bug, the fact that
it doesn't start with 0 or the fact that then number allowed in the wizard
is 16 as supposed to 15.
But when it is filling up the MRU list in the menu it gets the number by
doing this:
int nItem = (iMRU + 1 + m_nStart) % _AFX_MRU_MAX_COUNT;
the value for _AFX_MRU_MAX_COUNT is 16 therefore the max value for nItem
will 15
Since the 16th item actually gets loaded I would say that the above code
should have been this:
int nItem = ((iMRU + m_nStart) % _AFX_MRU_MAX_COUNT) + 1;
The definition for _AFX_MRU_MAX_COUNT says that the reason it is 16 is
that, that is the number of resource ids allocated for the MRU list. Hence
the menu will show 17 items if you want, but will not load the 17 item.
AliR.
"sleepp" <sleepp@discussions.microsoft.com> wrote in message
news:4684D87F-812F-4FF2-8D93-6A8704112F70@microsoft.com...
Hi, I created a new MFC project and set the size of the recent files list
to
16. The files are ordered 1-15, and then 0 for the 16th entry. Is there
any
reason for this?
Thanks!