Skip to content

Commit

Permalink
修正媒体库-播放列表左侧列表的右键菜单播放不会关闭媒体库
Browse files Browse the repository at this point in the history
  • Loading branch information
lrisora committed Aug 23, 2023
1 parent 426feee commit 4ae6b95
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MusicPlayer2/CSelectPlaylist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,12 @@ void CSelectPlaylistDlg::OnPlayPlaylist()
{
// TODO: 在此添加命令处理程序代码
::SendMessage(theApp.m_pMainWnd->GetSafeHwnd(), WM_PLAYLIST_SELECTED, (WPARAM)this, -1);

// 设置播放列表完成后请求关闭媒体库窗口
CTabDlg::OnOK();
CWnd* pParent = GetParentWindow();
if (pParent != nullptr)
::PostMessage(pParent->GetSafeHwnd(), WM_COMMAND, IDOK, 0);
}


Expand Down

0 comments on commit 4ae6b95

Please sign in to comment.