resource.h file

Started by
1 comment, last by CTEagle 15 years, 10 months ago
I am working on a new project in VS2005 V++. When I add the menu items, the compiler automatically generates my resource.h file. Everything works fine when I add "window-tile". When I add "window-cascade", the compiler appends a numeric value "ID_WINDOW_CASCADE" within my resource.h file. The following is the contents of my resource.h file.

//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by TEST.rc
//
#define IDR_MENU1                       101
#define ID_WINDOW_CASCADE40001          40001
#define ID_WINDOW_TILE                  40002

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        102
#define _APS_NEXT_COMMAND_VALUE         40003
#define _APS_NEXT_CONTROL_VALUE         1001
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

How can I get the #define statement for "ID_WINDOW_CASCADE" look like the #define statement for "ID_WINDOW_TILE". I tried to manually remove the "40001" but then my code does not react when I select "Window-Cascade" during run-time. Any help would be greatly appreciated.
Advertisement
You have to remove the 40001 in its usage in the .rc files as well.
Million-to-one chances occur nine times out of ten!
Thanks for the response. I should have mentioned that I did remove the numbers from the .rc file as well.

This topic is closed to new replies.

Advertisement