Guest_imported
New member
- Jan 1, 1970
- 0
Sometime ago I read up on how to map a range of command IDs to one ON_COMMAND message map.
To make it a bit clearer, if I had the following ID's in resource.h:
#define ID_WINDOW_VIEWER 32773
#define ID_VIEW_MESSAGE 32774
#define ID_WINDOW_SORT 32775
#define ID_SUMMARY_WINDOW 32776
I could have these mapped to the same command handler:
ON_COMMAND(range of commands, OnMyCommand)
Then I could use a case statement to find what was selected.
I can no longer find where I read about it and can't remember how it's done. Figures, I need it now.
Any help would be greatly appreciated.
Brother C