6 CRect client; WIN32_OP_D(
m_thisWnd.GetClientRect(client) );
7 return _EvalRect(walk, client.Size(), out);
34 HDWP hWinPosInfo = BeginDeferWindowPos(
m_table.get_size() + (
m_sizeGrip != NULL ? 1 : 0) );
38 hWinPosInfo = DeferWindowPos(hWinPosInfo,
m_thisWnd.GetDlgItem(
m_table[n].id), 0, rc.left,rc.top,rc.Width(),rc.Height(),SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_NOACTIVATE | SWP_NOCOPYBITS);
45 DWORD flags = SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_NOACTIVATE | SWP_NOSIZE | SWP_NOCOPYBITS;
46 if (IsZoomed(
m_thisWnd)) flags |= SWP_HIDEWINDOW;
47 else flags |= SWP_SHOWWINDOW;
48 hWinPosInfo = DeferWindowPos(hWinPosInfo,
m_sizeGrip, NULL, rc.right - (rc_grip.right - rc_grip.left), rc.bottom - (rc_grip.bottom - rc_grip.top), 0, 0, flags );
51 EndDeferWindowPos(hWinPosInfo);
59 const DWORD dwStyle =
m_thisWnd.GetWindowLong(GWL_STYLE);
60 const DWORD dwExStyle =
m_thisWnd.GetWindowLong(GWL_EXSTYLE);
63 r.left = 0; r.right =
max_x;
64 r.top = 0; r.bottom =
max_y;
66 AdjustWindowRectEx(&r, dwStyle, FALSE, dwExStyle);
67 info->ptMaxTrackSize.x = r.right - r.left;
68 info->ptMaxTrackSize.y = r.bottom - r.top;
72 r.left = 0; r.right =
min_x;
73 r.top = 0; r.bottom =
min_y;
75 AdjustWindowRectEx(&r, dwStyle, FALSE, dwExStyle);
76 info->ptMinTrackSize.x = r.right - r.left;
77 info->ptMinTrackSize.y = r.bottom - r.top;
104 if (
m_thisWnd.GetWindowLong(GWL_STYLE) & WS_POPUP) {
105 m_sizeGrip = CreateWindowEx(0, WC_SCROLLBAR, _T(
""), WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | SBS_SIZEGRIP | SBS_SIZEBOXBOTTOMRIGHTALIGN,
106 0, 0, CW_USEDEFAULT, CW_USEDEFAULT,
112 m_sizeGrip.SetWindowPos(NULL, rc.right - (rc_grip.right - rc_grip.left), rc.bottom - (rc_grip.bottom - rc_grip.top), 0, 0, SWP_NOZORDER | SWP_NOSIZE);
121 m_table.set_data_fromptr(table, tableSize);
125 for(
t_size walk = 0; walk < tableSize; ++walk) {
128 entry.
id = table[walk].
id;
BOOL GetChildWindowRect(HWND wnd, UINT id, RECT *child)
void info(const char *p_message)
pfc::map_t< UINT, CRect > m_origRects
bool EvalRect(UINT id, CRect &out) const
void InitMinMax(const CRect &range)
void OnGetMinMaxInfo(LPMINMAXINFO lpMMI) const
bool _EvalRect(t_size index, CSize wndSize, CRect &out) const
pfc::array_t< Param > m_table
void InitTable(const Param *table, t_size tableSize)
t_int32 rint32(double p_val)
void set(const _t_key &p_key, const _t_value &p_value)
void OnSize(UINT nType, CSize size)
void OnInitDialog(CWindow thisWnd)
bool query(const _t_key &p_key, _t_value &p_value) const