0
我正在使用菜單項單擊事件的On_WM_MENUSELECT消息。 但在編譯器會引發以下錯誤。 錯誤C2660: 'CSplashToolBarWnd :: OnMenuSelect':函數不接受4個參數E:\ SplashID的\ splashidtoolbar \ splashidtoolbar \ splasheditwnd.h 69 SplashIDToolBar如何重置On_WM_MENUSELECT消息的c2660編譯器錯誤?
在WTL它需要四arguemets:LRESULT OnMenuSelect(UINT uMsg,WPARAM wParam,LPARAM lParam,BOOL&bHandled)請參閱http://www.ecs.syr.edu/faculty/fawcett/handouts/cse778/WTL/Include/AtlCtrlw.h添加四個爭論的問題已解決 – Mahantesh 2010-11-30 08:34:52