I have created a dlg MFC app. Then I added a componenet/control, which was a pop-up menu to the dlg I created. So now my app runs great and when you right click it pops up a menu. How do I control this so that the menu only pop's up when I click on a button that I have added with the id of ID_OPTIONS? I know how to add the message handle for the ID_OPTIONS button. I just don't know how my program is currently calling this function? I can't figure out where my app is catching that messages of a right click and sending it to that function that was added when I added the component/control. Thanks for any help.