diff options
| author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
| commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
| tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/nu/ChildSizer.h | |
| parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
| parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
| download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz | |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/nu/ChildSizer.h')
| -rw-r--r-- | Src/nu/ChildSizer.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Src/nu/ChildSizer.h b/Src/nu/ChildSizer.h new file mode 100644 index 00000000..acf280f7 --- /dev/null +++ b/Src/nu/ChildSizer.h @@ -0,0 +1,38 @@ +#ifndef NULLSOFT_CHILDSIZERH +#define NULLSOFT_CHILDSIZERH + +#include "MediaLibraryInterface.h" +typedef struct +{ + int id; + int type; // 0xLTRB + RECT rinfo; +} +ChildWndResizeItem; + +enum +{ + Stationary = 0x0000, + ResizeBottom = 0x0001, + ResizeRight = 0x0010, + ResizeTop = 0x0100, + ResizeLeft=0x1000, + DockToBottom = 0x0101, + DockToBottomRight = 0x1111, +}; +class ChildSizer +{ + typedef void (*ChildResizeFunc)(HWND, ChildWndResizeItem*, int); +public: + ChildSizer(); + + void Init(HWND dlg, ChildWndResizeItem *list, int count); + + void Resize(HWND dlg, ChildWndResizeItem *list, int count); + static ChildWndResizeItem *Lookup(int id, ChildWndResizeItem *list, size_t numElements); + + ChildResizeFunc childresize_init, childresize_resize; + +}; +extern ChildSizer childSizer; +#endif |
