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 "Button.h" 00031 #include "ListViewItem.h" 00032 #include "ParameterHoldClick.h" 00033 00034 namespace SallyAPI 00035 { 00036 namespace GUI 00037 { 00046 00047 class DLL_API_SALLY CListViewButton : 00048 public SallyAPI::GUI::CButton 00049 { 00050 private: 00051 bool m_bFirst; 00052 bool m_bLast; 00053 int m_iNumber; 00054 bool m_bSmallFont; 00055 00056 bool m_bTimeMouseClickReset; 00057 00058 SallyAPI::GUI::LISTVIEWITEM_TYPE m_eType; 00059 00060 virtual bool ProcessMouseDoubleClick(int x, int y); 00061 virtual void RenderControl(); 00062 public: 00063 CListViewButton(SallyAPI::GUI::CGUIBaseObject* parent, int x, int y, int width, int height, int controlId); 00064 virtual ~CListViewButton(); 00065 00066 virtual void Timer(float timeDelta); 00067 virtual bool CheckProcessMouseUp(int x, int y); 00068 virtual bool CheckProcessMouseDown(int x, int y); 00069 00070 void SetNumber(int number); 00071 int GetNumber(); 00072 00073 void SetFirst(bool first); 00074 void SetLast(bool last); 00075 00076 void SetSmallFont(bool value); 00077 00078 void SetType(LISTVIEWITEM_TYPE value); 00079 00080 void ResetFlicker(); 00081 }; 00082 } 00083 }