Message Map MFC with multiple inheritance: how to avoid warning C4407 and runtime crashes

故事扮演 提交于 2019-12-01 10:47:31

Just a different approach. It is not solving your problem with the messages maps directly.

Why don't you use classic subclassing for such an "interface"?

I use CSubclassWnd (from Paul DiLascia), CHookWnd (from PJ Naughter) or just the ATL subclassing features.

This helps me to attach an interface to an existing window and I can implement standard function upon the specific window actions...

Using one of the libraries above you can even more than one "interface" to a window.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!