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 <vector> 00031 #include "Form.h" 00032 #include "ApplicationWindow.h" 00033 00034 namespace SallyAPI 00035 { 00036 namespace GUI 00037 { 00046 00047 class DLL_API_SALLY CScreensaverControl 00048 : public SallyAPI::GUI::CForm 00049 { 00050 private: 00051 SallyAPI::GUI::CApplicationWindow* m_pApp; 00052 std::vector<SallyAPI::GUI::CControl*> m_vControl; 00053 bool m_bShowAlways; 00054 00055 virtual void RenderControl(); 00056 public: 00057 CScreensaverControl(SallyAPI::GUI::CGUIBaseObject* parent, SallyAPI::GUI::CApplicationWindow* app); 00058 virtual ~CScreensaverControl(); 00059 00060 virtual void SendMessageToParent(SallyAPI::GUI::CGUIBaseObject* reporter, int reporterId, int messageId, SallyAPI::GUI::SendMessage::CParameterBase* messageParameter = NULL); 00061 virtual void AddChild(SallyAPI::GUI::CControl* control); 00062 00063 void ShowAlways(bool value); 00064 bool IsShowAlways(); 00065 00066 SallyAPI::GUI::CApplicationWindow* GetApplicationWindow(); 00067 }; 00068 } 00069 }