mirror of
https://github.com/libretro/Play-.git
synced 2025-01-22 08:41:07 +00:00
37 lines
929 B
C++
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
|