afx_msg term in message handler functions
Why afx_msg is used in message han开发者_如何学运维dler function declarations?
afx_msg is defined like this in the MFC headers:
#define afx_msg
so not using it it does not harm at all.
But it's still used by the Visual Studio 2010 IDE (not sure for Visual Studio 2012) to distinguish message handlers from other member functions as the previous answer did suggest.
I think it was used by earlier Microsoft Visual Studio IDEs to distinguish message handlers from other member functions. These days the IDE is more clever and does not need it. At least I do not remember any bad effect from not using it.
精彩评论