これを行う方法があるかどうかはわかりません。私の宿題はそう言っていますが、そのような方法はないと確信していました:
CStringArray m_Last;
int size = m_Last.GetCount();
// In the .h file I have,
#define IDM_LAST 90// these are to be used for contiguous Resource ID's
const int MAXLAST = 5; // there are 5 Resource IDs
for(int i = 0, j = IDM_LAST; i < size, j < IDM_LAST + MAXLASTUSEDDEST; ; i++, j++)
{
menuAPopup.AppendMenu(MF_STRING, j, m_Last.ElementAt(i));
}
for ループに 1 つの変数を使用する方法がありi
ますj
。