#pragma once #include "SRWnd.h" #include namespace SRFramework{ class SRTabCtrl : public SRFramework::SRWnd { public: SRTabCtrl(VOID); virtual ~SRTabCtrl(VOID); BOOL Create(SRWnd *pParentWnd, RECT bounds, DWORD dwStyle = WS_CHILD | WS_VISIBLE); // Does not need to be registered the call to InitCommonControlsEx // does that for us. BOOL Register() { return TRUE; } BOOL DeleteAllItems(VOID); BOOL DeleteItem(int nItem); BOOL DeselectAll(BOOL fExcludeFocus); BOOL HighlightItem(int idItem, BOOL fHighlight = TRUE); INT HitTest(LPTCHITTESTINFO pHitTestInfo) const; LONG InsertItem(int nItem, TC_ITEM* pTabCtrlItem); LONG InsertItem(int nItem, WCString wcsItem); LONG InsertItem(int nItem, WCString wcsItem, int nImage); LONG InsertItem(int nItem, WCString wcsItem, int nImage, LPARAM lParam); VOID RemoveImage(int nImage); INT GetCurFocus(); INT GetCurSel(); INT GetItemCount(); BOOL GetItemRect(INT nItem, LPRECT lpRect); INT GetRowCount(); BOOL SetCurFocus(INT nItem); BOOL SetCurSel(INT nItem); INT SetMinTabWidth(INT cx); BOOL SetPadding(INT cx, INT cy); virtual WCString GetWindowTitle() { return ""; } }; }