After a rough look, it is estimated that there is a problem with this sentence. Will m_nid.uID change when you click it?
if(wParam != m_nid.uID)
return;
m_nid.uID will not change.
If wParam != m_nid.uID, no menu will pop up at all, and naturally there will be no two menus.
Thank you for your help. If the problem cannot be solved, the post will be closed after 3 days!
Thanks again everyone! !