#pragma once #ifdef FOOBAR2000_DESKTOP_WINDOWS #include // Legacy class referenced by old code // Do not use in new code, use libPPUI instead class dialog_resize_helper : public CDialogResizeHelperCompat { pfc::array_t rects; RECT orig_client; HWND parent; HWND sizegrip; unsigned min_x,min_y,max_x,max_y; pfc::array_t 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