3 #ifndef _DIALOG_RESIZE_HELPER_H_ 4 #define _DIALOG_RESIZE_HELPER_H_ 28 inline void set_min_size(
unsigned x,
unsigned y) {min_x = x; min_y = y;}
29 inline void set_max_size(
unsigned x,
unsigned y) {max_x = x; max_y = y;}
43 dialog_resize_helper(
const param * src,
unsigned count,
unsigned p_min_x,
unsigned p_min_y,
unsigned p_max_x,
unsigned p_max_y);
50 #endif // _DIALOG_RESIZE_HELPER_H_ void set_min_size(unsigned x, unsigned y)
void set_max_size(unsigned x, unsigned y)
BOOL GetChildWindowRect(HWND wnd, UINT id, RECT *child)
typedef BOOL(WINAPI *pPowerSetRequest_t)(__in HANDLE PowerRequest
pfc::array_t< param > m_table
bool process_message(HWND wnd, UINT msg, WPARAM wp, LPARAM lp)
dialog_resize_helper(const param *src, unsigned count, unsigned p_min_x, unsigned p_min_y, unsigned p_max_x, unsigned p_max_y)
pfc::array_t< RECT > rects
void set_parent(HWND wnd)
PFC_CLASS_NOT_COPYABLE_EX(dialog_resize_helper)
BOOL ProcessWindowMessage(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult)