How do you remove a MFC command handler like ON_UPDATE_COMMAND_UI from a C++ file?
I can’t seem to find a way to do it thru Dev Studio. If you know how, please explain.
I am using VS 2008.
Thanks,
Mike
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To create a handler, you used the drop-down list in the Messages list of the properties pane. When you didn’t have a handler, the list had an entry something like
<add> OnXxxUpdate. If you already have a handler, dropping down the same list will show a<delete> OnXxxUpdate— click that. That just removes the entry in the message map — you have to delete the function body manually.