1

I made appliclation type- Dialog based MFC project, named Viewer and added IDR_MAIN_MENU using Add Resource dialog.

added Menu named IDR_MAIN_MENU

and have set up like this

 this

enter image description here

enter image description here

and boom! there is no Message type Ive taught that there should be COMMAND or UPDATE_COMMAND_UI, but there is nothing i have no idea what i did wrong.

one of my classmate had same problem, and he solved this problem indirectly -by installing VS2019

my environment is WINDOWS10/VS2022 with

v143 c++ build tools,
MSVC v143- VS2022 c++ x64/x86 build tools

installed.

sorry for the korean in installer screenshot.

Any Idea of what I did wrong? Should I REALLY install another version of VS?

3
  • +i just had installed in VS 2019 and same project works just fine in vs2019. IDK what makes this bug in VS2022 Commented Sep 21, 2022 at 6:05
  • 1
    Those wizards are broken, and have been broken for years. Time to move on and leave them behind. You'll have to write the code by hand now. Jeff Prosise' Programming Windows with MFC explains how that works. Commented Sep 21, 2022 at 9:00
  • 2
    I have tested this, the ClassWizard works in VS2022! There is an alternative way: Open the ClassWizard from them menu Project-Class Wizard.. or press CTRL+SHIFT+X, then you can add the handlers here Commented Sep 22, 2022 at 10:45

1 Answer 1

0

Same thing here, Microsoft close my issue but it still appears in 17.4.0 In the current Preview 17.5.0 you can pick a message type but the generated code ist wrong.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.