Quote Originally Posted by Mike Pliam View Post
Thank you for your kind help. I have it working now. Arjay, you are appropriate to point out that the answer was right in front of me, in the MFC source code.
Not trying to school here. When working on a new problem in MFC, I find it helpful to know that MFC if already does it, I usually try to track it down in the source to see how I can do it, or at least to give me a starting point. Sometimes, it's easy to miss some subtlety such as an out of range menu id like in this case.