In your code you have included
#include "resource1.h"
what is the resource
1.h? Like Albert said, the IDM_FILE_NEW will be defined in resource.h. So if you include that file, I guess your problem will be solved.
If you have already included resource.h, check whether IDM_FILE_NEW is defined in that file or not.