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就什么都 不可用了?
相当于析构了吗?
//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就什么都 不可用了?
相当于析构了吗?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货