Handling command message for dynamic menu
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, For static menus built during compile time we have to use this macro to map a contiguous range of command IDs to a single message handler function:
ON_COMMAND_RANGE(id1, id2, memberFxn)
But I have a dynamic menu based on database, I use for the item's ID the primary key of the corresponding record. The problem is: I don't know the range of these command IDs, because it's dynamic as I said. Please help me. Thx bondi