Play-/Source/ui_win32/OptionWnd.h
Jean-Philip Desjardins 52925f7ed6 Win32 cleanup build fix.
2017-01-09 22:01:09 -05:00

37 lines
929 B
C++

#ifndef _OPTIONWINDOW_H_
#define _OPTIONWINDOW_H_
#include "win32/Window.h"
#include "win32/TreeView.h"
#include "win32/Static.h"
#include "layout/HorizontalLayout.h"
template <typename T>
class COptionWnd : public T
{
public:
COptionWnd(HWND, const TCHAR*);
virtual ~COptionWnd();
protected:
virtual void OnItemAppearing(HTREEITEM);
LRESULT OnNotify(WPARAM, NMHDR*) override;
long OnSize(unsigned int, unsigned int, unsigned int) override;
Framework::Win32::CWindow* GetContainer();
Framework::Win32::CTreeView* GetTreeView();
HTREEITEM InsertOption(HTREEITEM, const TCHAR*, HWND);
void DeleteAllOptions();
void RefreshLayout();
void UpdatePanel(TVITEM*, TVITEM*);
private:
void ResizePanel(HWND);
Framework::Win32::CTreeView* m_pTreeView;
Framework::Win32::CStatic* m_pContainer;
Framework::FlatLayoutPtr m_pLayout;
};
#endif