#include "VolumeSlider.h"

#include "Skin.h"

VolumeSlider::VolumeSlider(HINSTANCE hInstance, Settings &settings) :
OSD(hInstance, L"3RVX-VolumeSlider", settings),
_sWnd(hInstance, L"3RVX-VolumeSliderWnd", L"3RVX Volume Slider") {

    std::wstring skinXML = settings.SkinXML();
    Skin skin(skinXML);

    Gdiplus::Bitmap *bg = skin.ControllerBgImg("volume");
    _sWnd.BackgroundImage(bg);
    _sWnd.Update();
    _sWnd.Show();
}

void VolumeSlider::Hide() {
    _sWnd.Hide(false);
}
#include "VolumeSlider.h"

#include "Skin.h"

VolumeSlider::VolumeSlider(HINSTANCE hInstance, Settings &settings) :
OSD(hInstance, L"3RVX-VolumeSlider", settings),
_mWnd(hInstance, L"3RVX-VolumeSliderWnd", L"3RVX Volume Slider") {

    std::wstring skinXML = settings.SkinXML();
    Skin skin(skinXML);

    long styles = GetWindowLongPtr(_mWnd.HWnd(), GWL_EXSTYLE);
    styles &= ~(WS_EX_NOACTIVATE | WS_EX_TRANSPARENT);
    SetWindowLongPtr(_mWnd.HWnd(), GWL_EXSTYLE, styles);

    Gdiplus::Bitmap *bg = skin.ControllerBgImg("volume");
    _mWnd.BackgroundImage(bg);
    _mWnd.Update();
    _mWnd.Show();

}

void VolumeSlider::Hide() {
    _mWnd.Hide(false);
}
--- 
+++ 
@@ -4,22 +4,17 @@
 
 VolumeSlider::VolumeSlider(HINSTANCE hInstance, Settings &settings) :
 OSD(hInstance, L"3RVX-VolumeSlider", settings),
-_mWnd(hInstance, L"3RVX-VolumeSliderWnd", L"3RVX Volume Slider") {
+_sWnd(hInstance, L"3RVX-VolumeSliderWnd", L"3RVX Volume Slider") {
 
     std::wstring skinXML = settings.SkinXML();
     Skin skin(skinXML);
 
-    long styles = GetWindowLongPtr(_mWnd.HWnd(), GWL_EXSTYLE);
-    styles &= ~(WS_EX_NOACTIVATE | WS_EX_TRANSPARENT);
-    SetWindowLongPtr(_mWnd.HWnd(), GWL_EXSTYLE, styles);
-
     Gdiplus::Bitmap *bg = skin.ControllerBgImg("volume");
-    _mWnd.BackgroundImage(bg);
-    _mWnd.Update();
-    _mWnd.Show();
-
+    _sWnd.BackgroundImage(bg);
+    _sWnd.Update();
+    _sWnd.Show();
 }
 
 void VolumeSlider::Hide() {
-    _mWnd.Hide(false);
+    _sWnd.Hide(false);
 }
Update for new SliderWnd class
