29 #ifndef ROLLUPPANEL_H_
30 #define ROLLUPPANEL_H_
32 #define RPITEM_MAX_NAME 64
54 bool Create (
DWORD dwStyle,
const RECT& rect, HWND parent,
unsigned int id );
56 int InsertItem (
const char* caption, HWND dialog,
bool autoDestroy,
int index = -1);
61 void ExpandItem (
int index,
bool expand =
true );
64 void EnableItem (
int index,
bool enabled =
true );
125 if ( index >=
mItems.
Num() || index < 0 )
134 if ( index >=
mItems.
Num() || index < 0 )
146 #endif // ROLLUPPANEL_H_
bool IsItemExpanded(int index)
char mCaption[RPITEM_MAX_NAME]
int HandleLButtonDown(WPARAM wParam, LPARAM lParam)
void ExpandItem(int index, bool expand=true)
int InsertItem(const char *caption, HWND dialog, bool autoDestroy, int index=-1)
void _EnableItem(RPITEM *item, bool enable)
int HandlePaint(WPARAM wParam, LPARAM lParam)
int HandleMouseMove(WPARAM wParam, LPARAM lParam)
CONST PIXELFORMATDESCRIPTOR UINT
void EnableItem(int index, bool enabled=true)
void RemoveItem(int index)
static LRESULT CALLBACK DialogProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
void EnableAllItems(bool enable=true)
static LRESULT FAR PASCAL GetMsgProc(int nCode, WPARAM wParam, LPARAM lParam)
void _ExpandItem(RPITEM *item, bool expand)
virtual ~rvRollupPanel(void)
static LRESULT CALLBACK ButtonProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
static LRESULT CALLBACK WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
int HandleMouseActivate(WPARAM wParam, LPARAM lParam)
int HandleMouseWheel(WPARAM wParam, LPARAM lParam)
idList< RPITEM * > mItems
static idList< HWND > mDialogs
int HandleContextMenu(WPARAM wParam, LPARAM lParam)
bool Create(DWORD dwStyle, const RECT &rect, HWND parent, unsigned int id)
GLdouble GLdouble GLdouble top
int HandleCommand(WPARAM wParam, LPARAM lParam)
int MoveItemAt(int index, int newIndex)
int HandleSize(WPARAM wParam, LPARAM lParam)
int GetItemIndex(const char *caption)
void ExpandAllItems(bool expand=true)
void _RemoveItem(int index)
RPITEM * GetItem(int index)
void RemoveAllItems(void)
void ScrollToItem(int index, bool top=true)
bool IsItemEnabled(int index)
int HandleLButtonUp(WPARAM wParam, LPARAM lParam)