开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜