GetMenu()->DeleteMenu(1,MF_BYPOSITION);
//menu.LoadMenuA(IDR_MAINFRAME);
//menu.CreatePopupMenu();
//menu.AppendMenuA(MF_STRING,1,"cn");
那1就是menu原来的位置,我删了它,下面三行注释的代码都错查了msdn,If the menu item has an associated pop-up menu, DeleteMenu destroys the handle to the pop-up menu and frees the memory used by the pop-up menu. 我想问下难道free的内存,menu就什么都 不可用了?
相当于析构了吗?