My Project
|
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 #pragma once 00029 #include "Define.h" 00030 #include "Form.h" 00031 #include "Button.h" 00032 #include "Slider.h" 00033 00034 namespace SallyAPI 00035 { 00036 namespace GUI 00037 { 00046 00047 class DLL_API_SALLY CVolumeControl 00048 : public SallyAPI::GUI::CForm 00049 { 00050 private: 00051 SallyAPI::GUI::CButton* m_pVolumeMute; 00052 SallyAPI::GUI::CSlider* m_pVolumeSlider; 00053 00054 void OnCommandMuted(); 00055 void OnCommandChangeVolume(SallyAPI::GUI::SendMessage::CParameterBase* messageParameter); 00056 public: 00057 CVolumeControl(SallyAPI::GUI::CGUIBaseObject* parent, int x, int y, int width, int controlId = 0); 00058 virtual ~CVolumeControl(); 00059 00060 virtual void SendMessageToParent(SallyAPI::GUI::CGUIBaseObject* reporter, int reporterId, int messageId, SallyAPI::GUI::SendMessage::CParameterBase* messageParameter = NULL); 00061 void UpdateView(); 00062 }; 00063 } 00064 }