Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralexwild <alexwild@users.sourceforge.net>2007-10-02 13:26:40 +0400
committeralexwild <alexwild@users.sourceforge.net>2007-10-02 13:26:40 +0400
commit488813327f0afd62fc2782bd9aecfd2b497c7fd8 (patch)
tree94d7b47a422060fd3d6a5e890379c99bfbd0c899 /src/apps/mplayerc/VMROSD.cpp
parent181fdd9d056930879ce2bac13774ff6c1ca35695 (diff)
fixed trayicon delete on vista; code cleanup
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@275 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/VMROSD.cpp')
-rw-r--r--src/apps/mplayerc/VMROSD.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/apps/mplayerc/VMROSD.cpp b/src/apps/mplayerc/VMROSD.cpp
index 82d4861f4..5d3b7adc4 100644
--- a/src/apps/mplayerc/VMROSD.cpp
+++ b/src/apps/mplayerc/VMROSD.cpp
@@ -54,8 +54,7 @@ CVMROSD::CVMROSD(void)
CVMROSD::~CVMROSD(void)
{
- DeleteDC(m_MemDC);
- DeleteObject(m_Bitmap);
+ m_MemDC.DeleteDC();
}
@@ -65,8 +64,8 @@ void CVMROSD::OnSize(UINT nType, int cx, int cy)
{
if (m_bSeekBarVisible)
{
- m_bCursorMoving = false;
- m_bSeekBarVisible = false;
+ m_bCursorMoving = false;
+ m_bSeekBarVisible = false;
Invalidate();
}
UpdateBitmap();
@@ -82,7 +81,6 @@ void CVMROSD::UpdateBitmap()
CalcRect();
m_MemDC.DeleteDC();
- m_Bitmap.DeleteObject();
if (m_MemDC.CreateCompatibleDC (&dc))
{