MusicPlayerDlg.cpp (1b4d31ee2f1e37f083415efe273980cd473be4ab) | MusicPlayerDlg.cpp (6e7ebf801e8cd0a6d2895ce922f5264fa3bd6d64) |
---|---|
1 2// MusicPlayerDlg.cpp : ʵ���ļ� 3// 4 5#include "stdafx.h" 6#include "MusicPlayer2.h" 7#include "MusicPlayerDlg.h" 8#include "afxdialogex.h" --- 245 unchanged lines hidden (view full) --- 254 ON_COMMAND(ID_TRANSLATE_TO_TRANDITIONAL_CHINESE, &CMusicPlayerDlg::OnTranslateToTranditionalChinese) 255 ON_COMMAND(ID_ALBUM_COVER_SAVE_AS, &CMusicPlayerDlg::OnAlbumCoverSaveAs) 256 ON_MESSAGE(WM_PATH_SELECTED, &CMusicPlayerDlg::OnPathSelected) 257 ON_MESSAGE(WM_CONNOT_PLAY_WARNING, &CMusicPlayerDlg::OnConnotPlayWarning) 258 ON_EN_CHANGE(IDC_SEARCH_EDIT, &CMusicPlayerDlg::OnEnChangeSearchEdit) 259 ON_BN_CLICKED(IDC_CLEAR_SEARCH_BUTTON, &CMusicPlayerDlg::OnBnClickedClearSearchButton) 260 ON_COMMAND(ID_DOWNLOAD_ALBUM_COVER, &CMusicPlayerDlg::OnDownloadAlbumCover) 261 ON_MESSAGE(WM_MUSIC_STREAM_OPENED, &CMusicPlayerDlg::OnMusicStreamOpened) | 1 2// MusicPlayerDlg.cpp : ʵ���ļ� 3// 4 5#include "stdafx.h" 6#include "MusicPlayer2.h" 7#include "MusicPlayerDlg.h" 8#include "afxdialogex.h" --- 245 unchanged lines hidden (view full) --- 254 ON_COMMAND(ID_TRANSLATE_TO_TRANDITIONAL_CHINESE, &CMusicPlayerDlg::OnTranslateToTranditionalChinese) 255 ON_COMMAND(ID_ALBUM_COVER_SAVE_AS, &CMusicPlayerDlg::OnAlbumCoverSaveAs) 256 ON_MESSAGE(WM_PATH_SELECTED, &CMusicPlayerDlg::OnPathSelected) 257 ON_MESSAGE(WM_CONNOT_PLAY_WARNING, &CMusicPlayerDlg::OnConnotPlayWarning) 258 ON_EN_CHANGE(IDC_SEARCH_EDIT, &CMusicPlayerDlg::OnEnChangeSearchEdit) 259 ON_BN_CLICKED(IDC_CLEAR_SEARCH_BUTTON, &CMusicPlayerDlg::OnBnClickedClearSearchButton) 260 ON_COMMAND(ID_DOWNLOAD_ALBUM_COVER, &CMusicPlayerDlg::OnDownloadAlbumCover) 261 ON_MESSAGE(WM_MUSIC_STREAM_OPENED, &CMusicPlayerDlg::OnMusicStreamOpened) |
262 ON_COMMAND(ID_CURRENT_EXPLORE_ONLINE, &CMusicPlayerDlg::OnCurrentExploreOnline) |
|
262END_MESSAGE_MAP() 263 264 265// CMusicPlayerDlg ��Ϣ������� 266 267void CMusicPlayerDlg::SaveConfig() 268{ 269 CCommon::WritePrivateProfileIntW(L"config", L"window_width", m_window_width, theApp.m_config_path.c_str()); --- 57 unchanged lines hidden (view full) --- 327 theApp.m_app_setting_data.show_spectrum = (GetPrivateProfileInt(_T("config"), _T("show_spectrum"), 1, theApp.m_config_path.c_str()) != 0); 328 theApp.m_app_setting_data.show_album_cover = (GetPrivateProfileInt(_T("config"), _T("show_album_cover"), 1, theApp.m_config_path.c_str()) != 0); 329 theApp.m_app_setting_data.album_cover_fit = static_cast<CDrawCommon::StretchMode>(GetPrivateProfileInt(_T("config"), _T("album_cover_fit"), 2, theApp.m_config_path.c_str())); 330 theApp.m_app_setting_data.album_cover_as_background = (GetPrivateProfileInt(_T("config"), _T("album_cover_as_background"), 0, theApp.m_config_path.c_str()) != 0); 331 theApp.m_play_setting_data.cortana_show_album_cover = (GetPrivateProfileInt(_T("config"), _T("cortana_show_album_cover"), 1, theApp.m_config_path.c_str()) != 0); 332 theApp.m_play_setting_data.cortana_icon_beat = (GetPrivateProfileInt(_T("config"), _T("cortana_icon_beat"), 1, theApp.m_config_path.c_str()) != 0); 333 334 theApp.m_app_setting_data.background_transparency = GetPrivateProfileIntW(L"config", L"background_transparency", 80, theApp.m_config_path.c_str()); | 263END_MESSAGE_MAP() 264 265 266// CMusicPlayerDlg ��Ϣ������� 267 268void CMusicPlayerDlg::SaveConfig() 269{ 270 CCommon::WritePrivateProfileIntW(L"config", L"window_width", m_window_width, theApp.m_config_path.c_str()); --- 57 unchanged lines hidden (view full) --- 328 theApp.m_app_setting_data.show_spectrum = (GetPrivateProfileInt(_T("config"), _T("show_spectrum"), 1, theApp.m_config_path.c_str()) != 0); 329 theApp.m_app_setting_data.show_album_cover = (GetPrivateProfileInt(_T("config"), _T("show_album_cover"), 1, theApp.m_config_path.c_str()) != 0); 330 theApp.m_app_setting_data.album_cover_fit = static_cast<CDrawCommon::StretchMode>(GetPrivateProfileInt(_T("config"), _T("album_cover_fit"), 2, theApp.m_config_path.c_str())); 331 theApp.m_app_setting_data.album_cover_as_background = (GetPrivateProfileInt(_T("config"), _T("album_cover_as_background"), 0, theApp.m_config_path.c_str()) != 0); 332 theApp.m_play_setting_data.cortana_show_album_cover = (GetPrivateProfileInt(_T("config"), _T("cortana_show_album_cover"), 1, theApp.m_config_path.c_str()) != 0); 333 theApp.m_play_setting_data.cortana_icon_beat = (GetPrivateProfileInt(_T("config"), _T("cortana_icon_beat"), 1, theApp.m_config_path.c_str()) != 0); 334 335 theApp.m_app_setting_data.background_transparency = GetPrivateProfileIntW(L"config", L"background_transparency", 80, theApp.m_config_path.c_str()); |
335 theApp.m_app_setting_data.use_out_image = (GetPrivateProfileIntW(_T("config"), _T("use_out_image"), 1, theApp.m_config_path.c_str()) != 0); | 336 theApp.m_app_setting_data.use_out_image = (GetPrivateProfileIntW(_T("config"), _T("use_out_image"), 0, theApp.m_config_path.c_str()) != 0); |
336 theApp.m_nc_setting_data.volum_step = GetPrivateProfileIntW(_T("config"), _T("volum_step"), 3, theApp.m_config_path.c_str()); 337 theApp.m_nc_setting_data.mouse_volum_step = GetPrivateProfileIntW(_T("config"), _T("mouse_volum_step"), 2, theApp.m_config_path.c_str()); 338 theApp.m_play_setting_data.show_playstate_icon = (GetPrivateProfileIntW(_T("config"), _T("show_playstate_icon"), 1, theApp.m_config_path.c_str())!=0); 339 theApp.m_play_setting_data.cortana_color = GetPrivateProfileIntW(_T("config"), _T("cortana_back_color"), 0, theApp.m_config_path.c_str()); 340 theApp.m_nc_setting_data.volume_map = GetPrivateProfileIntW(_T("config"), _T("volume_map"), 100, theApp.m_config_path.c_str()); | 337 theApp.m_nc_setting_data.volum_step = GetPrivateProfileIntW(_T("config"), _T("volum_step"), 3, theApp.m_config_path.c_str()); 338 theApp.m_nc_setting_data.mouse_volum_step = GetPrivateProfileIntW(_T("config"), _T("mouse_volum_step"), 2, theApp.m_config_path.c_str()); 339 theApp.m_play_setting_data.show_playstate_icon = (GetPrivateProfileIntW(_T("config"), _T("show_playstate_icon"), 1, theApp.m_config_path.c_str())!=0); 340 theApp.m_play_setting_data.cortana_color = GetPrivateProfileIntW(_T("config"), _T("cortana_back_color"), 0, theApp.m_config_path.c_str()); 341 theApp.m_nc_setting_data.volume_map = GetPrivateProfileIntW(_T("config"), _T("volume_map"), 100, theApp.m_config_path.c_str()); |
341 theApp.m_nc_setting_data.show_cover_tip = (GetPrivateProfileIntW(_T("config"), _T("show_cover_tip"), 1, theApp.m_config_path.c_str()) != 0); | 342 theApp.m_nc_setting_data.show_cover_tip = (GetPrivateProfileIntW(_T("config"), _T("show_cover_tip"), 0, theApp.m_config_path.c_str()) != 0); |
342 343 theApp.m_general_setting_data.id3v2_first = (GetPrivateProfileIntW(_T("general"), _T("id3v2_first"), 1, theApp.m_config_path.c_str()) != 0); 344 theApp.m_general_setting_data.auto_download_lyric = (GetPrivateProfileIntW(_T("general"), _T("auto_download_lyric"), 0, theApp.m_config_path.c_str()) != 0); 345 theApp.m_general_setting_data.auto_download_album_cover = (GetPrivateProfileIntW(_T("general"), _T("auto_download_album_cover"), 1, theApp.m_config_path.c_str()) != 0); 346} 347 348void CMusicPlayerDlg::SetTransparency() 349{ --- 1646 unchanged lines hidden (view full) --- 1996 pMenu->EnableMenuItem(ID_LYRIC_DELAY, MF_BYCOMMAND | (!theApp.m_player.m_Lyrics.IsEmpty() ? MF_ENABLED : MF_GRAYED)); 1997 pMenu->EnableMenuItem(ID_SAVE_MODIFIED_LYRIC, MF_BYCOMMAND | ((!theApp.m_player.m_Lyrics.IsEmpty() && theApp.m_player.m_Lyrics.IsModified()) ? MF_ENABLED : MF_GRAYED)); 1998 pMenu->EnableMenuItem(ID_DELETE_LYRIC, MF_BYCOMMAND | (CCommon::FileExist(theApp.m_player.m_Lyrics.GetPathName()) ? MF_ENABLED : MF_GRAYED)); //������ļ�����ʱ���á�ɾ����ʡ��˵��� 1999 pMenu->EnableMenuItem(ID_BROWSE_LYRIC, MF_BYCOMMAND | (!theApp.m_player.m_Lyrics.IsEmpty() ? MF_ENABLED : MF_GRAYED)); 2000 pMenu->EnableMenuItem(ID_TRANSLATE_TO_SIMPLIFIED_CHINESE, MF_BYCOMMAND | (!theApp.m_player.m_Lyrics.IsEmpty() ? MF_ENABLED : MF_GRAYED)); 2001 pMenu->EnableMenuItem(ID_TRANSLATE_TO_TRANDITIONAL_CHINESE, MF_BYCOMMAND | (!theApp.m_player.m_Lyrics.IsEmpty() ? MF_ENABLED : MF_GRAYED)); 2002 2003 pMenu->EnableMenuItem(ID_ALBUM_COVER_SAVE_AS, MF_BYCOMMAND | (theApp.m_player.AlbumCoverExist() ? MF_ENABLED : MF_GRAYED)); | 343 344 theApp.m_general_setting_data.id3v2_first = (GetPrivateProfileIntW(_T("general"), _T("id3v2_first"), 1, theApp.m_config_path.c_str()) != 0); 345 theApp.m_general_setting_data.auto_download_lyric = (GetPrivateProfileIntW(_T("general"), _T("auto_download_lyric"), 0, theApp.m_config_path.c_str()) != 0); 346 theApp.m_general_setting_data.auto_download_album_cover = (GetPrivateProfileIntW(_T("general"), _T("auto_download_album_cover"), 1, theApp.m_config_path.c_str()) != 0); 347} 348 349void CMusicPlayerDlg::SetTransparency() 350{ --- 1646 unchanged lines hidden (view full) --- 1997 pMenu->EnableMenuItem(ID_LYRIC_DELAY, MF_BYCOMMAND | (!theApp.m_player.m_Lyrics.IsEmpty() ? MF_ENABLED : MF_GRAYED)); 1998 pMenu->EnableMenuItem(ID_SAVE_MODIFIED_LYRIC, MF_BYCOMMAND | ((!theApp.m_player.m_Lyrics.IsEmpty() && theApp.m_player.m_Lyrics.IsModified()) ? MF_ENABLED : MF_GRAYED)); 1999 pMenu->EnableMenuItem(ID_DELETE_LYRIC, MF_BYCOMMAND | (CCommon::FileExist(theApp.m_player.m_Lyrics.GetPathName()) ? MF_ENABLED : MF_GRAYED)); //������ļ�����ʱ���á�ɾ����ʡ��˵��� 2000 pMenu->EnableMenuItem(ID_BROWSE_LYRIC, MF_BYCOMMAND | (!theApp.m_player.m_Lyrics.IsEmpty() ? MF_ENABLED : MF_GRAYED)); 2001 pMenu->EnableMenuItem(ID_TRANSLATE_TO_SIMPLIFIED_CHINESE, MF_BYCOMMAND | (!theApp.m_player.m_Lyrics.IsEmpty() ? MF_ENABLED : MF_GRAYED)); 2002 pMenu->EnableMenuItem(ID_TRANSLATE_TO_TRANDITIONAL_CHINESE, MF_BYCOMMAND | (!theApp.m_player.m_Lyrics.IsEmpty() ? MF_ENABLED : MF_GRAYED)); 2003 2004 pMenu->EnableMenuItem(ID_ALBUM_COVER_SAVE_AS, MF_BYCOMMAND | (theApp.m_player.AlbumCoverExist() ? MF_ENABLED : MF_GRAYED)); |
2005 pMenu->EnableMenuItem(ID_DOWNLOAD_ALBUM_COVER, MF_BYCOMMAND | (!theApp.m_player.IsInnerCover() ? MF_ENABLED : MF_GRAYED)); |
|
2004 2005 // TODO: �ڴ˴������Ϣ���������� 2006} 2007 2008 2009void CMusicPlayerDlg::OnPlayOrder() 2010{ 2011 // TODO: �ڴ��������������� --- 666 unchanged lines hidden (view full) --- 2678 bool show_cover_tip{ cover_rect.PtInRect(point) != FALSE }; 2679 static bool last_show_cover_tip{ false }; 2680 if (!last_show_cover_tip && show_cover_tip) 2681 { 2682 CString info; 2683 if (theApp.m_player.AlbumCoverExist()) 2684 { 2685 info = _T("ר������: "); | 2006 2007 // TODO: �ڴ˴������Ϣ���������� 2008} 2009 2010 2011void CMusicPlayerDlg::OnPlayOrder() 2012{ 2013 // TODO: �ڴ��������������� --- 666 unchanged lines hidden (view full) --- 2680 bool show_cover_tip{ cover_rect.PtInRect(point) != FALSE }; 2681 static bool last_show_cover_tip{ false }; 2682 if (!last_show_cover_tip && show_cover_tip) 2683 { 2684 CString info; 2685 if (theApp.m_player.AlbumCoverExist()) 2686 { 2687 info = _T("ר������: "); |
2686 CFilePathHelper cover_path(theApp.m_player.GetAlbumCoverPath()); 2687 if (cover_path.GetFileNameWithoutExtension() == ALBUM_COVER_NAME) | 2688 //CFilePathHelper cover_path(theApp.m_player.GetAlbumCoverPath()); 2689 //if (cover_path.GetFileNameWithoutExtension() == ALBUM_COVER_NAME) 2690 if(theApp.m_player.IsInnerCover()) |
2688 { 2689 info += _T("��ǶͼƬ\r\nͼƬ��ʽ: "); 2690 switch (theApp.m_player.GetAlbumCoverType()) 2691 { 2692 case 0: info += _T("jpg"); break; 2693 case 1: info += _T("png"); break; 2694 case 2: info += _T("gif"); break; 2695 } --- 108 unchanged lines hidden (view full) --- 2804 m_pSoundEffecDlg->Create(IDD_SOUND_EFFECT_DIALOG); 2805 m_pSoundEffecDlg->ShowWindow(SW_SHOW); 2806} 2807 2808 2809void CMusicPlayerDlg::OnExploreOnline() 2810{ 2811 // TODO: �ڴ��������������� | 2691 { 2692 info += _T("��ǶͼƬ\r\nͼƬ��ʽ: "); 2693 switch (theApp.m_player.GetAlbumCoverType()) 2694 { 2695 case 0: info += _T("jpg"); break; 2696 case 1: info += _T("png"); break; 2697 case 2: info += _T("gif"); break; 2698 } --- 108 unchanged lines hidden (view full) --- 2807 m_pSoundEffecDlg->Create(IDD_SOUND_EFFECT_DIALOG); 2808 m_pSoundEffecDlg->ShowWindow(SW_SHOW); 2809} 2810 2811 2812void CMusicPlayerDlg::OnExploreOnline() 2813{ 2814 // TODO: �ڴ��������������� |
2812 m_pThread = AfxBeginThread(ViewOnlineThreadFunc, &m_item_selected); | 2815 m_pThread = AfxBeginThread(ViewOnlineThreadFunc, (void*)m_item_selected); |
2813} 2814 2815UINT CMusicPlayerDlg::ViewOnlineThreadFunc(LPVOID lpParam) 2816{ 2817 //������������ת��������Ӧ�����������ֵ�����ҳ�� | 2816} 2817 2818UINT CMusicPlayerDlg::ViewOnlineThreadFunc(LPVOID lpParam) 2819{ 2820 //������������ת��������Ӧ�����������ֵ�����ҳ�� |
2818 int item_selected{ *(static_cast<int*>(lpParam)) }; | 2821 int item_selected = (int)lpParam; |
2819 if (item_selected >= 0 && item_selected < theApp.m_player.GetSongNum()) 2820 { 2821 //���Ҹ�������ȡ���ƥ����ĸ���ID 2822 wstring song_id = CInternetCommon::SearchSongAndGetMatched(theApp.m_player.GetPlayList()[item_selected].title, theApp.m_player.GetPlayList()[item_selected].artist, 2823 theApp.m_player.GetPlayList()[item_selected].album, theApp.m_player.GetPlayList()[item_selected].file_name).id; 2824 | 2822 if (item_selected >= 0 && item_selected < theApp.m_player.GetSongNum()) 2823 { 2824 //���Ҹ�������ȡ���ƥ����ĸ���ID 2825 wstring song_id = CInternetCommon::SearchSongAndGetMatched(theApp.m_player.GetPlayList()[item_selected].title, theApp.m_player.GetPlayList()[item_selected].artist, 2826 theApp.m_player.GetPlayList()[item_selected].album, theApp.m_player.GetPlayList()[item_selected].file_name).id; 2827 |
2828 if (song_id.empty()) 2829 return 0; |
|
2825 //��ȡ�����������иø��������߽�����ַ 2826 wstring song_url{ L"http://music.163.com/#/song?id=" + song_id }; 2827 2828 //������ 2829 ShellExecute(NULL, _T("open"), song_url.c_str(), NULL, NULL, SW_SHOW); 2830 } 2831 return 0; 2832} --- 30 unchanged lines hidden (view full) --- 2863 else 2864 { 2865 lyric_path.SetFilePath(theApp.m_player.GetCurrentPath() + theApp.m_player.GetCurrentSongInfo().file_name); 2866 } 2867 lyric_path.ReplaceFileExtension(L"lrc"); 2868 string _lyric_str = CCommon::UnicodeToStr(lyric_str, CodeType::UTF8); 2869 ofstream out_put{ lyric_path.GetFilePath(), std::ios::binary }; 2870 out_put << _lyric_str; | 2830 //��ȡ�����������иø��������߽�����ַ 2831 wstring song_url{ L"http://music.163.com/#/song?id=" + song_id }; 2832 2833 //������ 2834 ShellExecute(NULL, _T("open"), song_url.c_str(), NULL, NULL, SW_SHOW); 2835 } 2836 return 0; 2837} --- 30 unchanged lines hidden (view full) --- 2868 else 2869 { 2870 lyric_path.SetFilePath(theApp.m_player.GetCurrentPath() + theApp.m_player.GetCurrentSongInfo().file_name); 2871 } 2872 lyric_path.ReplaceFileExtension(L"lrc"); 2873 string _lyric_str = CCommon::UnicodeToStr(lyric_str, CodeType::UTF8); 2874 ofstream out_put{ lyric_path.GetFilePath(), std::ios::binary }; 2875 out_put << _lyric_str; |
2876 out_put.close(); |
|
2871 theApp.m_player.IniLyrics(lyric_path.GetFilePath()); 2872 } 2873 return 0; 2874} 2875 2876 2877 2878afx_msg LRESULT CMusicPlayerDlg::OnPlaylistIniStart(WPARAM wParam, LPARAM lParam) --- 30 unchanged lines hidden (view full) --- 2909void CMusicPlayerDlg::OnAlbumCoverSaveAs() 2910{ 2911 // TODO: �ڴ��������������� 2912 //���ù����� 2913 const wchar_t* szFilter = L"�����ļ�(*.*)|*.*||"; 2914 //�������Ϊʱ��Ĭ���ļ��� 2915 CString file_name; 2916 CString extension; | 2877 theApp.m_player.IniLyrics(lyric_path.GetFilePath()); 2878 } 2879 return 0; 2880} 2881 2882 2883 2884afx_msg LRESULT CMusicPlayerDlg::OnPlaylistIniStart(WPARAM wParam, LPARAM lParam) --- 30 unchanged lines hidden (view full) --- 2915void CMusicPlayerDlg::OnAlbumCoverSaveAs() 2916{ 2917 // TODO: �ڴ��������������� 2918 //���ù����� 2919 const wchar_t* szFilter = L"�����ļ�(*.*)|*.*||"; 2920 //�������Ϊʱ��Ĭ���ļ��� 2921 CString file_name; 2922 CString extension; |
2917 switch (theApp.m_player.GetAlbumCoverType()) | 2923 if (theApp.m_player.IsInnerCover()) |
2918 { | 2924 { |
2919 case 0: 2920 extension = _T(".jpg"); 2921 break; 2922 case 1: 2923 extension = _T(".png"); 2924 break; 2925 case 2: 2926 extension = _T(".gif"); 2927 break; 2928 default: return; | 2925 switch (theApp.m_player.GetAlbumCoverType()) 2926 { 2927 case 0: 2928 extension = _T("jpg"); 2929 break; 2930 case 1: 2931 extension = _T("png"); 2932 break; 2933 case 2: 2934 extension = _T("gif"); 2935 break; 2936 default: return; 2937 } |
2929 } | 2938 } |
2930 file_name.Format(_T("AlbumCover - %s - %s%s"), theApp.m_player.GetCurrentSongInfo().artist.c_str(), theApp.m_player.GetCurrentSongInfo().album.c_str(), extension); | 2939 else 2940 { 2941 CFilePathHelper cover_path(theApp.m_player.GetAlbumCoverPath()); 2942 extension = cover_path.GetFileExtension().c_str(); 2943 } 2944 file_name.Format(_T("AlbumCover - %s - %s.%s"), theApp.m_player.GetCurrentSongInfo().artist.c_str(), theApp.m_player.GetCurrentSongInfo().album.c_str(), extension); |
2931 wstring file_name_wcs{ file_name }; 2932 CCommon::FileNameNormalize(file_name_wcs); //�滻���ļ����е���Ч�ַ� 2933 //���챣���ļ��Ի��� 2934 CFileDialog fileDlg(FALSE, _T("txt"), file_name_wcs.c_str(), OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, szFilter, this); 2935 //��ʾ�����ļ��Ի��� 2936 if (IDOK == fileDlg.DoModal()) 2937 { 2938 CString dest_file = fileDlg.GetPathName(); --- 80 unchanged lines hidden (view full) --- 3019 //���´ӱ��ػ�ȡר������ 3020 theApp.m_player.SearchOutAlbumCover(); 3021} 3022 3023 3024void CMusicPlayerDlg::OnDownloadAlbumCover() 3025{ 3026 // TODO: �ڴ��������������� | 2945 wstring file_name_wcs{ file_name }; 2946 CCommon::FileNameNormalize(file_name_wcs); //�滻���ļ����е���Ч�ַ� 2947 //���챣���ļ��Ի��� 2948 CFileDialog fileDlg(FALSE, _T("txt"), file_name_wcs.c_str(), OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, szFilter, this); 2949 //��ʾ�����ļ��Ի��� 2950 if (IDOK == fileDlg.DoModal()) 2951 { 2952 CString dest_file = fileDlg.GetPathName(); --- 80 unchanged lines hidden (view full) --- 3033 //���´ӱ��ػ�ȡר������ 3034 theApp.m_player.SearchOutAlbumCover(); 3035} 3036 3037 3038void CMusicPlayerDlg::OnDownloadAlbumCover() 3039{ 3040 // TODO: �ڴ��������������� |
3027 _OnDownloadAlbumCover(true); | 3041 //_OnDownloadAlbumCover(true); 3042 CCoverDownloadDlg dlg; 3043 dlg.DoModal(); |
3028} 3029 3030 3031afx_msg LRESULT CMusicPlayerDlg::OnMusicStreamOpened(WPARAM wParam, LPARAM lParam) 3032{ 3033 //�Զ�����ר������ 3034 m_pDownloadThread = AfxBeginThread(DownloadLyricAndCoverThreadFunc, this); 3035 return 0; 3036} | 3044} 3045 3046 3047afx_msg LRESULT CMusicPlayerDlg::OnMusicStreamOpened(WPARAM wParam, LPARAM lParam) 3048{ 3049 //�Զ�����ר������ 3050 m_pDownloadThread = AfxBeginThread(DownloadLyricAndCoverThreadFunc, this); 3051 return 0; 3052} |
3053 3054 3055void CMusicPlayerDlg::OnCurrentExploreOnline() 3056{ 3057 // TODO: �ڴ��������������� 3058 m_pThread = AfxBeginThread(ViewOnlineThreadFunc, (void*)theApp.m_player.GetIndex()); 3059} |
|