Currently, CMenu class is used in some message handler prorotypes. For example,
void OnInitMenuPopup(CMenu menuPopup, UINT nIndex, BOOL bSysMenu)
But I think we should use CMenuHandle instead of CMenu, because CMenu calls DestroyMenu.
MSG_WM_SYSCOMMAND hanlder prototype is wrong too.
// void OnSysCommand(UINT nID, LPARAM lParam)
The second parameter should be CPoint.
You are correct. We will fix that.
Thanks, Nenad
Log in to post a comment.
Currently, CMenu class is used in some message handler prorotypes. For example,
But I think we should use CMenuHandle instead of CMenu, because CMenu calls DestroyMenu.
MSG_WM_SYSCOMMAND hanlder prototype is wrong too.
The second parameter should be CPoint.
You are correct. We will fix that.
Thanks,
Nenad