- 1
- 2
- 3
- 4
- 5
- 6
- 7
if (!cpMenu->IsSelected())
{
std::vector<UINT> menus;
menus.push_back(_menuIndex.Value);
if (!_SelectMenu(cpTarget, _instanceID.HasValue ? _instanceID.Value : -1, &menus[0], (UINT)menus.size(), SelectionType::Exclusive))
return CPNGObject();
}