我尝试使用类似这样的东西来设置 CMenu 项的工具提示(如此处所述),但它只是显示在一行中,并且换行符不可见。
// read control id
UINT id = menu->GetMenuItemID(1235);
// modify caption and add tooltip?
menu->ModifyMenu( id, MF_BYCOMMAND, id, "Click here\nThis is the tooltip for the menu item ...");
我也试过直接在菜单项的visual studio资源设计器中设置标题,效果一样。你能告诉我什么是错的吗?我在 Windows 7 上使用 VS2008。
任何帮助表示赞赏!