My Project
D:/source/c++/Programme/sally/sally/sallyAPI/Tabcontrol.h
Go to the documentation of this file.
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 "TabcontrolItem.h"
00032 
00033 namespace SallyAPI
00034 {
00035         namespace GUI
00036         {
00042 
00043                 enum TabPosition {TAB_POSITION_LEFT};
00044 
00053 
00054                 class DLL_API_SALLY CTabcontrol
00055                         : public SallyAPI::GUI::CForm
00056                 {
00057                 private:
00058                         std::vector<SallyAPI::GUI::CTabcontrolItem*>    m_pTabcontrolItems;
00059                         SallyAPI::GUI::CTabcontrolItem*                                 m_pCurrentItem;
00060                         TabPosition             m_eTabPosition;
00061                         int                             m_iXPosition;
00062                         int                             m_iYPosition;
00063                         int                             m_iLeftSpace;
00064 
00065                         virtual void    RenderControl();
00066                 public:
00067                         CTabcontrol(SallyAPI::GUI::CGUIBaseObject* parent, int x, int y, int width, int height, int controlId = 0);
00068                         virtual ~CTabcontrol();
00069 
00070                         void                                            SetTabPosition(SallyAPI::GUI::TabPosition tabPosition);
00071                         SallyAPI::GUI::TabPosition      GetTabPosition();
00072 
00073                         void    AddTabItem(SallyAPI::GUI::CTabcontrolItem* item);
00074                         int             GetFormWidth();
00075                         int             GetFormHeight();
00076 
00077                         virtual void SendMessageToParent(SallyAPI::GUI::CGUIBaseObject* reporter, int reporterId, int messageId, SallyAPI::GUI::SendMessage::CParameterBase* messageParameter = NULL);
00078                 };
00079         }
00080 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines