0 Members and 1 Guest are viewing this topic.
IAIMPPlaylist* pl = nullptr;if(SUCCEEDED(mPlaylistManager->GetActivePlaylist(&pl))) { int max = pl->GetItemCount(); IAIMPPropertyList *list = nullptr; if(SUCCEEDED(pl->QueryInterface(IID_IAIMPPropertyList, reinterpret_cast<void**>(&list)))) { int selected = 0; if(SUCCEEDED(list->GetValueAsInt32(AIMP_PLAYLIST_PROPID_FOCUSINDEX, &selected))) { selected++; if(selected > max) { selected = max; } list->SetValueAsInt32(AIMP_PLAYLIST_PROPID_FOCUSINDEX, selected); } }}
AIMP_PLAYLISTITEM_PROPID_SELECTED ?