Mercurial > foo_out_sdl
diff foosdk/sdk/foobar2000/helpers/dialog_resize_helper.h @ 1:20d02a178406 default tip
*: check in everything else
yay
| author | Paper <paper@tflc.us> |
|---|---|
| date | Mon, 05 Jan 2026 02:15:46 -0500 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/foosdk/sdk/foobar2000/helpers/dialog_resize_helper.h Mon Jan 05 02:15:46 2026 -0500 @@ -0,0 +1,40 @@ +#pragma once + +#ifdef FOOBAR2000_DESKTOP_WINDOWS + +#include <libPPUI/CDialogResizeHelperCompat.h> + +// Legacy class referenced by old code +// Do not use in new code, use libPPUI instead +class dialog_resize_helper : public CDialogResizeHelperCompat +{ + pfc::array_t<RECT> rects; + RECT orig_client; + HWND parent; + HWND sizegrip; + unsigned min_x,min_y,max_x,max_y; + + pfc::array_t<param> m_table; + + void set_parent(HWND wnd); + void reset(); + void on_wm_size(); +public: + inline void set_min_size(unsigned x,unsigned y) {min_x = x; min_y = y;} + inline void set_max_size(unsigned x,unsigned y) {max_x = x; max_y = y;} + void add_sizegrip(); + + //the old way + bool process_message(HWND wnd,UINT msg,WPARAM wp,LPARAM lp); + + //ATL-compatible + BOOL ProcessWindowMessage(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT& lResult); + + dialog_resize_helper(const param * src,unsigned count,unsigned p_min_x,unsigned p_min_y,unsigned p_max_x,unsigned p_max_y); + + ~dialog_resize_helper(); + + PFC_CLASS_NOT_COPYABLE_EX(dialog_resize_helper); +}; + +#endif // FOOBAR2000_DESKTOP_WINDOWS \ No newline at end of file
