I am working on an MFC program that began in the days of VC6. Then a class wizard appeared who used a bunch of decorators and markup in the comments to analyze class files.
For example, it will insert afx_msg in front of the message handlers that it supports. He will mark the code block with comments // {{AFX_MSG_MAP (TheApp) and /}} AFX_MSG_MAP to help find the parts of the message map that she wanted to process.
AFAIK, this is no longer necessary. In addition, there were so many flaws in the master class that we had to do a lot of manual editing of these managed blocks, and we never used it very often anyway.
Are there any other reasons to keep using afx_msg and its ilk?
c ++ visual-studio mfc
criddell
source share