Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Range of IDs, one command handler

Status
Not open for further replies.

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top