diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2009-12-19 14:01:29 +0300 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2009-12-19 14:01:29 +0300 |
commit | 90dafc23010af38115b0e153c82698e93c5f23a1 (patch) | |
tree | de83d82438c4addf9abb710b3ad14985d75dd2f9 /src/apps/mplayerc/PlayerSeekBar.cpp | |
parent | 68b5161166b148bcb89c4456f53ffe5c4ec7e718 (diff) |
NEW : ADD support Windows 7 taskbar and thumbnails features, like Progress bar, Status Icon, Toolbar control(button)
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1423 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/PlayerSeekBar.cpp')
-rw-r--r-- | src/apps/mplayerc/PlayerSeekBar.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/apps/mplayerc/PlayerSeekBar.cpp b/src/apps/mplayerc/PlayerSeekBar.cpp index 5c8d6bd6b..355befc8f 100644 --- a/src/apps/mplayerc/PlayerSeekBar.cpp +++ b/src/apps/mplayerc/PlayerSeekBar.cpp @@ -24,6 +24,7 @@ #include "stdafx.h"
#include "mplayerc.h"
#include "PlayerSeekBar.h"
+#include "MainFrm.h"
// CPlayerSeekBar
@@ -107,7 +108,14 @@ void CPlayerSeekBar::SetPosInternal(__int64 pos) m_posreal = pos;
CRect after = GetThumbRect();
- if(before != after) InvalidateRect(before | after);
+ if(before != after)
+ {
+ InvalidateRect(before | after);
+
+ CMainFrame* pFrame = ((CMainFrame*)GetParentFrame());
+ if(pFrame->m_pTaskbarList)
+ pFrame->m_pTaskbarList->SetProgressValue ( pFrame->m_hWnd, pos, m_stop );
+ }
}
CRect CPlayerSeekBar::GetChannelRect()
|